mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
@ -53,7 +53,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short
|
||||
if (!dirEntry)
|
||||
break;
|
||||
char* entryName = dirEntry->d_name;
|
||||
if (String_startsWith(entryName, "BAT"))
|
||||
if (!String_startsWith(entryName, "BAT"))
|
||||
continue;
|
||||
batteries[nBatteries] = xStrdup(entryName);
|
||||
nBatteries++;
|
||||
|
Reference in New Issue
Block a user