mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 20:34:07 +08:00
[cppcheck] fix wrong format
Found with invalidPrintfArgType_uint Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
71243ffbdc
commit
fdb2837bc7
|
@ -109,9 +109,9 @@ static void print_rusage_self(FILE *fp) {
|
|||
long rss_kb = rs.ru_maxrss;
|
||||
#endif
|
||||
fprintf(fp, " rusage self:\n");
|
||||
fprintf(fp, " user time: %llu ms\n", tv_to_msec(rs.ru_utime));
|
||||
fprintf(fp, " sys time: %llu ms\n", tv_to_msec(rs.ru_stime));
|
||||
fprintf(fp, " total time: %llu ms\n", tv_to_msec(rs.ru_utime) + tv_to_msec(rs.ru_stime));
|
||||
fprintf(fp, " user time: %lld ms\n", tv_to_msec(rs.ru_utime));
|
||||
fprintf(fp, " sys time: %lld ms\n", tv_to_msec(rs.ru_stime));
|
||||
fprintf(fp, " total time: %lld ms\n", tv_to_msec(rs.ru_utime) + tv_to_msec(rs.ru_stime));
|
||||
fprintf(fp, " max rss: %ld kb\n", rss_kb);
|
||||
fprintf(fp, " signals: %ld\n", rs.ru_nsignals);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user