Skip to content

Commit

Permalink
CI Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwiddis committed Nov 10, 2019
1 parent 0fe210d commit 7a25351
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public int getProcessorGroup() {
* A class encapsulating ghe CPU's identifier strings ,including name, vendor,
* stepping, model, and family information (also called the signature of a CPU)
*/
static final class ProcessorIdentifier {
final class ProcessorIdentifier {
// Provided in constructor
private final String cpuVendor;
private final String cpuName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public static PowerSource[] getPowerSources() {
}
psName = psMap.getOrDefault("POWER_SUPPLY_NAME", name);
String status = psMap.get("POWER_SUPPLY_STATUS");
psCharging = ("Charging".equals(status));
psDischarging = ("Discharging".equals(status));
psCharging = "Charging".equals(status);
psDischarging = "Discharging".equals(status);
if (psMap.containsKey("POWER_SUPPLY_CAPACITY")) {
psRemainingCapacityPercent = ParseUtil.parseIntOrDefault(psMap.get("POWER_SUPPLY_CAPACITY"), -100)
/ 100d;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public long getProcessAffinityMask(int processId) {
for (String bit : bits) {
int bitToSet = ParseUtil.parseIntOrDefault(bit.trim(), -1);
if (bitToSet >= 0) {
bitMask |= (1L << bitToSet);
bitMask |= 1L << bitToSet;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public long getProcessAffinityMask(int processId) {
for (int i = split.length - 1; i >= 0; i--) {
int bitToSet = ParseUtil.parseIntOrDefault(split[i], -1);
if (bitToSet >= 0) {
bitMask |= (1L << bitToSet);
bitMask |= 1L << bitToSet;
} else {
// Once we run into the word processor(s) we're done
break;
Expand Down

0 comments on commit 7a25351

Please sign in to comment.