Merge branch 'master' of github.com:htop-dev/htop

This commit is contained in:
Nathan Scott
2020-08-31 16:57:46 +10:00
2 changed files with 4 additions and 5 deletions

View File

@ -671,7 +671,7 @@ static void LinuxProcessList_readOomData(LinuxProcess* process, const char* dirn
char buffer[PROC_LINE_LENGTH + 1];
if (fgets(buffer, PROC_LINE_LENGTH, file)) {
unsigned int oom;
int ok = sscanf(buffer, "%32u", &oom);
int ok = sscanf(buffer, "%u", &oom);
if (ok >= 1) {
process->oom = oom;
}