mirror of https://github.com/xzeldon/htop.git
Merge branch 'Fix wrong strncmp replacement' of cgzones/htop
This commit is contained in:
commit
f8bd5acdc1
|
@ -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++;
|
||||
|
|
|
@ -224,7 +224,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
|||
}
|
||||
|
||||
void Platform_setMemoryValues(Meter* this) {
|
||||
ProcessList* pl = (ProcessList*) this->pl;
|
||||
ProcessList* pl = this->pl;
|
||||
LinuxProcessList* lpl = (LinuxProcessList*) this->pl;
|
||||
|
||||
long int usedMem = pl->usedMem;
|
||||
|
|
Loading…
Reference in New Issue