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) {