summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 42d2b5e..41b300f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,9 +38,10 @@ int main(int argc, char* argv[]) {
}
// Calculate max memory usage and average memory usage
- if(status.memmax < (minfo.used))
- status.memmax = minfo.used;
- status.memavg = (((status.count - 1) * status.memavg) + minfo.used) / status.count;
+ if(status.memusedmax < (minfo.used))
+ status.memusedmax = minfo.used;
+ status.memusedavg = (((status.count - 1) * status.memusedavg) + minfo.used) / status.count;
+ status.memtotal = minfo.total;
// Calculate load max and incremental load average
double load = cpuinfo_load1m();

Generated by cgit