summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-07-07 15:01:27 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2010-07-07 15:08:43 +0200
commitc4a1c15d0ccba73b987b280370f913f47a5cbf09 (patch)
tree713f522e3df584c1e2076788a4a034f336d798e5 /src/linux/up-backend.c
parent04eefe984c86df041b55be14236ae413711d1c7d (diff)
downloadupower-c4a1c15d0ccba73b987b280370f913f47a5cbf09.tar.gz
Fix UP_DAEMON_WATERLINE harder
Commmit fc7c6e003 had a thinko, UP_DAEMON_WATERLINE specifies (active memory)/(available swap), not the other way around. So replace it with 99% instead. Also update the documentation of up_backend_get_used_swap() to explain what the returned percentage actually means.
Diffstat (limited to 'src/linux/up-backend.c')
-rw-r--r--src/linux/up-backend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index aa6f33b..021b36f 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -480,7 +480,8 @@ out:
/**
* up_backend_get_used_swap:
*
- * Return value: a percentage value
+ * Return value: a percentage value how much of the available swap memory would
+ * be taken by currently active memory
**/
gfloat
up_backend_get_used_swap (UpBackend *backend)