Remove trailing whitespace
This commit is contained in:
parent
fa905a6165
commit
7355ee2eb7
2 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ double get_battery_percentage() {
|
|||
|
||||
NSNumber *maxCapacity = [battery objectForKey:@kIOPSMaxCapacityKey];
|
||||
NSNumber *currentCapacity = [battery objectForKey:@kIOPSCurrentCapacityKey];
|
||||
|
||||
|
||||
if (maxCapacity && currentCapacity) {
|
||||
return ([currentCapacity doubleValue] / [maxCapacity doubleValue]) * 100;
|
||||
} else {
|
||||
|
|
|
@ -28,11 +28,11 @@ namespace apple {
|
|||
CGFloat scale_factor = 1.0f;
|
||||
|
||||
NSArray *screens = [NSScreen screens];
|
||||
|
||||
|
||||
if ([screens[display_index] respondsToSelector:@selector(backingScaleFactor)]) { // Mac OS X 10.7 and later
|
||||
scale_factor = [screens[display_index] backingScaleFactor];
|
||||
}
|
||||
|
||||
|
||||
return scale_factor;
|
||||
}
|
||||
} // end namespace apple
|
||||
|
|
Loading…
Add table
Reference in a new issue