diff options
Diffstat (limited to 'cpu.c')
| -rw-r--r-- | cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,7 +9,8 @@ int cpu_delay = 6, cpu_stat[8]; char cpu_str[12]; int total, idle; double cpu_usage_p; -void cpu(void) { +void cpu(void) +{ if (cpu_delay++ < 6) goto show_stat; else cpu_delay = 0; int prev_idle, prev_total; |