mirror of https://github.com/xzeldon/htop.git
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