aboutsummaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-11-18 14:42:04 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-11-18 14:42:04 +0600
commitccad4019ce8e83cc7e9f3edb257c78bb51589421 (patch)
tree344a0a47e0c0b330105b5d25d7ee9ac8284610f2 /cpu.c
parent1a494a95e6436f90d3dfc1ca7647eafcc94e5034 (diff)
Fixing all redundancies in code reading, hopefully.
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu.c b/cpu.c
index a1068c2..dff7693 100644
--- a/cpu.c
+++ b/cpu.c
@@ -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;