mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 21:14:35 +03:00
Unify naming of first argument of Platform_getBattery
Use percent throughout
This commit is contained in:
@ -309,7 +309,7 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived,
|
||||
return false;
|
||||
}
|
||||
|
||||
void Platform_getBattery(double* level, ACPresence* isOnAC) {
|
||||
*level = NAN;
|
||||
void Platform_getBattery(double* percent, ACPresence* isOnAC) {
|
||||
*percent = NAN;
|
||||
*isOnAC = AC_ERROR;
|
||||
}
|
||||
|
@ -84,6 +84,6 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived,
|
||||
unsigned long int* bytesTransmitted,
|
||||
unsigned long int* packetsTransmitted);
|
||||
|
||||
void Platform_getBattery(double* level, ACPresence* isOnAC);
|
||||
void Platform_getBattery(double* percent, ACPresence* isOnAC);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user