Package: gt5 Version: 1.5.0~20111220+bzr29-1 Severity: normal Tags: patch Dear Maintainer, the summary line in a subfolder has a wrong size. It is not the same as the size of the folder entrty shown in the parent folder:
============================================================================== ../: [4.6TB in 5 files or directories] 4.6TB [100.00%] ./folder1/ <-- click 6.4GB [ 0.14%] ./folder2/ ============================================================================== ../folder1/: [3.8TB in 7 files or directories] 3.8TB [100.00%] ./subfolder1/ 691GB [17.61%] ./subfolder2/ 48GB [ 1.22%] ./subfolder3/ ============================================================================== The line "[3.8TB in 7 files or directories]" should really be: "[4.6TB in 7 files or directories]" The size written there is the size of the previous folder in the raw "du". The "me"-Variable is used in "size[me] = $1" before it is initialized to "me = $3". The attached patch fixes the problem. Bye, Ronny -- System Information: Debian Release: 7.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- a/usr/bin/gt5 2011-12-22 04:31:53.000000000 +0100 +++ b/usr/bin/gt5 2014-08-19 17:03:04.000000000 +0200 @@ -670,9 +670,9 @@ printf("%s %s\n", $0, $0) } + me = $3 size[me] = $1 osize[me] = $2 - me = $3 e = 0 while ( i = index( substr(me, e + 1), "/") )