After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 129721 - kernel 2.6 issue
kernel 2.6 issue
Status: RESOLVED DUPLICATE of bug 129863
Product: libgtop
Classification: Core
Component: linux
2.0.x
Other Linux
: Normal normal
: GNOME2.x
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-20 08:38 UTC by Christian Marillat
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Marillat 2003-12-20 08:38:10 UTC
Hi,

http://bugs.debian.org/224371

The multiload applet is permanently fixed at 100% memory usage (causing
that applet to be pretty much useless). I believe that this is due to the
2.6 kernel being used.

The patch (taken from http://bugzilla.gnome.org/show_bug.cgi?id=126461)
fixes the problem for me:

--- linux-proc.c        2003-12-18 13:34:39.000000000 +0000
+++ linux-proc.c.orig   2003-12-18 13:31:57.000000000 +0000
@@ -140,7 +140,7 @@

     tmp_user = mem.used - mem.buffer - mem.shared - mem.cached;

-    user    = rint (Maximum * (float)mem.user / mem.total);
+    user    = rint (Maximum * (float)tmp_user / mem.total);
     shared  = rint (Maximum * (float)mem.shared / mem.total);
     buffer  = rint (Maximum * (float)mem.buffer / mem.total);
     cached = rint (Maximum * (float)mem.cached / mem.total);

Although I haven't tested it with a 2.4 kernel.
Comment 1 Benoît Dejean 2004-01-01 19:48:07 UTC
what about this ?
http://bugzilla.gnome.org/show_bug.cgi?id=129863
Comment 2 Kjartan Maraas 2004-03-04 21:59:07 UTC
Closing as duplicate. It works here at least with 2.6.x kernels.

*** This bug has been marked as a duplicate of 129863 ***