refactor: simplify parsing
This commit is contained in:
1 parent
0662af17f4
commit
1c24cb3ebb
4 files changed
+13
-12
No files matched your search
@@ -41,7 +41,7 @@ const char* ffGetCpuUsageInfo(FFlist* cpuTimes)
|
||||
};
|
||||
}
|
||||
else
|
||||
break; // because we read the whole /proc/stat, we can safely quit when the line does not start with "cpuN"
|
||||
break;
|
||||
start = token + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user