DiskIO (Linux): trim trailing white spaces

This commit is contained in:
李通洲
2025-08-25 09:26:04 +08:00
parent 588c4c0026
commit 0998b1e59e
+2 -2
View File
@@ -23,8 +23,8 @@ static const char* parseDiskIOCounters(int dfd, const char* devName, FFlist* res
ffStrbufAppendC(&name, ' ');
}
if (ffAppendFileBufferRelative(devfd, "model", &name))
ffStrbufTrimRightSpace(&name);
ffAppendFileBufferRelative(devfd, "model", &name);
ffStrbufTrimRightSpace(&name);
if (name.length == 0)
ffStrbufSetS(&name, devName);