mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +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:
parent
08bae4fd68
commit
23eabd4796
@ -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
10
conky.c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user