Package: conky
Version: 1.6.1-1
Severity: minor

The following options in .conkyrc:
- top_mem mem_res
- top_mem mem_vsize

are not sorted by memory but by cpu.
After some search this is a *typo* in conky.c code (attachment).

Please note that:
- this problem does not exist in conky next release 1.6.2_pre1395 (git; the 
code seems to be different)
- problem corrected in Ubuntu (https://bugs.launchpad.net/bugs/329789)

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages conky depends on:
ii  libc6                      2.7-18        GNU C Library: Shared libraries
ii  libcurl3-gnutls            7.18.2-8      Multi-protocol file transfer libra
ii  libglib2.0-0               2.16.6-1      The GLib library of C routines
ii  libiw29                    29-1.1        Wireless tools - library
ii  libx11-6                   2:1.1.5-2     X11 client-side library
ii  libxdamage1                1:1.1.1-4     X11 damaged region extension libra
ii  libxext6                   2:1.0.4-1     X11 miscellaneous extension librar
ii  libxfixes3                 1:4.0.3-2     X11 miscellaneous 'fixes' extensio
ii  libxft2                    2.1.13-3      FreeType-based font drawing librar
ii  libxml2                    2.6.32.dfsg-5 GNOME XML library

conky recommends no packages.

Versions of packages conky suggests:
pn  mpd                           <none>     (no description available)

-- no debconf information
--- /tmp/conky-1.6.1/src/conky.c        2008-08-14 19:10:43.000000000 +0200
+++ conky.c     2009-02-28 23:17:23.000000000 +0100
@@ -5979,11 +5979,11 @@
                                                        free(timeval);
                                                        break;
                                                case TOP_MEM_RES:
-                                                       
human_readable(cur->cpu[obj->data.top.num]->rss,
+                                                       
human_readable(cur->memu[obj->data.top.num]->rss,
                                                                        p, 255, 
"top_rss");
                                                        break;
                                                case TOP_MEM_VSIZE:
-                                                       
human_readable(cur->cpu[obj->data.top.num]->vsize,
+                                                       
human_readable(cur->memu[obj->data.top.num]->vsize,
                                                                        p, 255, 
"top_rss");
                                                        break;
                                                default:

Reply via email to