1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00

oops..fixed memgraph again

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@93 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-08-10 17:35:26 +00:00
parent 08bae4fd68
commit 23eabd4796
2 changed files with 8 additions and 3 deletions

View File

@ -27,7 +27,6 @@ DEPEND="truetype? ( >=media-libs/freetype-2 )
sys-apps/grep sys-apps/grep
sys-apps/sed sys-apps/sed
sys-devel/gcc sys-devel/gcc
>=sys-process/procps-3.2.5
" "
S=${WORKDIR}/conky S=${WORKDIR}/conky

10
conky.c
View File

@ -1965,10 +1965,16 @@ static void generate_text()
} }
OBJ(memgraph) { OBJ(memgraph) {
new_graph(p, obj->a, /*new_graph(p, obj->a,
obj->b, obj->c, obj->d, obj->b, obj->c, obj->d,
cur->memmax ? (cur->mem) / 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 */ /* mixer stuff */
OBJ(mixer) { OBJ(mixer) {