Chip Davis (@cdavis5e) commented about dlls/ntdll/unix/system.c:
bs->AcOnLine = TRUE;
if (value & kIOBatteryCharge)
if (is_charging) bs->Charging = TRUE;
} else bs->Discharging = TRUE;
/* We'll need the voltage to be able to interpret the other values. */
- prop = CFDictionaryGetValue( battery, CFSTR(kIOBatteryVoltageKey) );
- CFNumberGetValue( prop, kCFNumberSInt32Type, &voltage );
- prop = CFDictionaryGetValue( source, CFSTR(kIOPSVoltageKey) );
- if (prop)
CFNumberGetValue( (CFNumberRef)prop, kCFNumberSInt32Type, &voltage );
- else
/* kIOPSCurrentKey is optional and might not be populated.
Copy-pasto. ```suggestion:-0+0 /* kIOPSVoltageKey is optional and might not be populated. ```