From 23eabd47960562ae4b9c8833d6af825b4544fcd4 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 10 Aug 2005 17:35:26 +0000 Subject: [PATCH] oops..fixed memgraph again git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@93 7f574dfc-610e-0410-a909-a81674777703 --- app-admin/conky/conky-1.9999.ebuild | 1 - conky.c | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app-admin/conky/conky-1.9999.ebuild b/app-admin/conky/conky-1.9999.ebuild index a20bcb8a..ac3c1cd7 100644 --- a/app-admin/conky/conky-1.9999.ebuild +++ b/app-admin/conky/conky-1.9999.ebuild @@ -27,7 +27,6 @@ DEPEND="truetype? ( >=media-libs/freetype-2 ) sys-apps/grep sys-apps/sed sys-devel/gcc - >=sys-process/procps-3.2.5 " S=${WORKDIR}/conky diff --git a/conky.c b/conky.c index d4421016..a860a3b0 100644 --- a/conky.c +++ b/conky.c @@ -1965,10 +1965,16 @@ static void generate_text() } OBJ(memgraph) { - new_graph(p, obj->a, + /*new_graph(p, obj->a, obj->b, obj->c, obj->d, cur->memmax ? (cur->mem) / - (cur->memmax) : 0, 0); + (cur->memmax) : 0, 0);*/ + new_graph(p, obj->a, + obj->b, obj->c, obj->d, + cur->memmax ? (cur->mem * 100.0) / + (cur->memmax) : 0.0, 0); + printf("%f\n", cur->memmax ? (cur->mem * 100.0) / + (cur->memmax) : 0.0); } /* mixer stuff */ OBJ(mixer) {