summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpm-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpm-load.c b/src/gpm-load.c
index eab0129..3b0f572 100644
--- a/src/gpm-load.c
+++ b/src/gpm-load.c
@@ -192,7 +192,7 @@ gpm_load_get_cpu_values (long unsigned *cpu_idle, long unsigned *cpu_total)
*cpu_total = cpu_user + cpu_nice + cpu_system + *cpu_idle;
ret = TRUE;
out:
- if (!fd)
+ if (fd)
fclose (fd);
return ret;
}