summaryrefslogtreecommitdiff
path: root/src/gpm-load.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-03-17 10:23:09 -0700
committerSteve Zesch <[email protected]>2012-03-17 10:23:09 -0700
commitccfcf2483ffb52d0af9caaf52db4be44ec6ac160 (patch)
treef5b0cca4773de2ad8de12ab8c91f70dc95830ee1 /src/gpm-load.c
parent285e040fd7ba4bedc25054790b4de9eb0fcb6410 (diff)
parent3178d77b55f106694ad9aa1e27f437ac1cca862b (diff)
downloadmate-power-manager-ccfcf2483ffb52d0af9caaf52db4be44ec6ac160.tar.bz2
mate-power-manager-ccfcf2483ffb52d0af9caaf52db4be44ec6ac160.tar.xz
Merge pull request #6 from benpicco/master
sync with upstream
Diffstat (limited to 'src/gpm-load.c')
-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;
}