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)
|
if (!dirEntry)
|
||||||
break;
|
break;
|
||||||
char* entryName = dirEntry->d_name;
|
char* entryName = dirEntry->d_name;
|
||||||
if (String_startsWith(entryName, "BAT"))
|
if (!String_startsWith(entryName, "BAT"))
|
||||||
continue;
|
continue;
|
||||||
batteries[nBatteries] = xStrdup(entryName);
|
batteries[nBatteries] = xStrdup(entryName);
|
||||||
nBatteries++;
|
nBatteries++;
|
||||||
|
|
Loading…
Reference in New Issue