mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
parent
7429c22201
commit
e12d48a661
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user