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)
|
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++;
|
||||||
|
|
|
@ -224,7 +224,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform_setMemoryValues(Meter* this) {
|
void Platform_setMemoryValues(Meter* this) {
|
||||||
ProcessList* pl = (ProcessList*) this->pl;
|
ProcessList* pl = this->pl;
|
||||||
LinuxProcessList* lpl = (LinuxProcessList*) this->pl;
|
LinuxProcessList* lpl = (LinuxProcessList*) this->pl;
|
||||||
|
|
||||||
long int usedMem = pl->usedMem;
|
long int usedMem = pl->usedMem;
|
||||||
|
|
Loading…
Reference in New Issue