From b71a8088d3231add3f1f1b47ff3ab6398d8a45a6 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 24 Dec 2022 15:43:07 -0800 Subject: [PATCH] Uncomment and correct spelling error in use of getrusage() result, ru_outblock => ru_oublock --- src/timer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/timer.c b/src/timer.c index 2f91695..ec1d4ef 100644 --- a/src/timer.c +++ b/src/timer.c @@ -127,10 +127,7 @@ void update_miscstats(void) { MiscStats->pagefaults = ru.ru_minflt + ru.ru_majflt; MiscStats->swapwrites = ru.ru_majflt; MiscStats->diskiotime = 0; /* ?? not available ?? */ - MiscStats->diskops = ru.ru_inblock - /* ?? this doesn't work ??? - + ru.ru_outblock */ - ; + MiscStats->diskops = ru.ru_inblock + ru.ru_oublock; gettimeofday(&timev, NULL); MiscStats->secondstmp = MiscStats->secondsclock = (timev.tv_sec + UNIX_ALTO_TIME_DIFF); #endif /* DOS */