field too narrow for giga values

Bug #327664 reported by Andika Triwidada
2
Affects Status Importance Assigned to Milestone
htop
Unknown
Unknown
htop (Ubuntu)
Fix Released
Low
David Futcher

Bug Description

Binary package hint: htop

(also reported upstream http://sourceforge.net/tracker/index.php?func=detail&aid=2577889&group_id=108839&atid=651633; screenshots are at http://andika-lives-here.blogspot.com/2009/02/tweaking-htop-display.html)

on my system with 32 GB RAM, processes with VIRT > 10 GB will use 6
characters, which make display unaligned.

attached patch will cure it.

ProblemType: Bug
Architecture: i386
Dependencies:
 libgcc1 1:4.3.2-1ubuntu12
 gcc-4.3-base 4.3.2-1ubuntu12
 findutils 4.4.0-2ubuntu3
 libncurses5 5.6+20071124-1ubuntu2
 libc6 2.8~20080505-0ubuntu9
DistroRelease: Ubuntu 8.10
Package: htop 0.8-0ubuntu1
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin:/usr/sbin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: htop
Uname: Linux 2.6.27-11-generic i686

Tags: apport-bug

Related branches

Revision history for this message
Andika Triwidada (andika) wrote :
Revision history for this message
David Futcher (bobbo) wrote :

Will have a look at this. Leave it with me.

Changed in htop:
assignee: nobody → bobbo
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Andika Triwidada (andika) wrote :

on a second thought, field width 4 "%4.1fG" is more proper than my previous one "%3.1fG", so new patch

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package htop - 0.8.1-3ubuntu1

---------------
htop (0.8.1-3ubuntu1) jaunty; urgency=low

  * Merge from Debian unstable. Remaining Ubuntu changes:
    - debian/patches/900-ubuntu-processlist-userland-threads.patch:
        - Add patch to fix tree view when userland threads are hidden
  * 910-ubuntu-64bit-ram-alignment.patch: Add patch to stop column misalignment
    when a process uses > 10gb RAM. Thanks to Andika Triwidada. (LP: #327664)
  * Convert previous Ubuntu-specific inline patches to quilt patches.

 -- David Futcher <email address hidden> Sat, 21 Feb 2009 12:27:06 +0000

Changed in htop:
status: In Progress → Fix Released
Revision history for this message
David Futcher (bobbo) wrote :

I have applied this patch to the Ubuntu package and uploaded it. I would appreciate someone on Jaunty (with big processes >10gb VIRT) to test it (htop 0.8.1-3ubuntu1) and report any breakages etc.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.