refactor: simplify parsing

This commit is contained in:
apocelipes
2023-12-04 20:34:41 +09:00
committed by Carter Li
parent 0662af17f4
commit 1c24cb3ebb
4 changed files with 13 additions and 12 deletions
+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;
}