refactor: simplify parsing

This commit is contained in:
apocelipes authored and Carter Li committed 2023-12-04 19:47:34 +08:00
1 parent 0662af17f4
commit 1c24cb3ebb
4 files changed
+13 -12

No files matched your search

+1 -1
View File
@@ -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;
}