From 972eab191c70634e4f155e75b2be1d3e3b2329ee Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 3 Mar 2014 17:30:17 +0000 Subject: [PATCH] fix pretty size git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1819 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 4 ++-- var/mongoose/lib/pretty_size | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 5d566d4..0d219e3 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,10 +1,10 @@ Package: webif Priority: optional Section: web -Version: 1.0.10 +Version: 1.0.10-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.9),mongoose(>=3.0.11),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6) Suggests: Description: An evolving web interface for the Humax. -Tags: http://hummy.tv/forum/threads/4659/ +Tags: http://hummy.tv/forum/threads/4723/ diff --git a/var/mongoose/lib/pretty_size b/var/mongoose/lib/pretty_size index 84f10c7..1a4b472 100644 --- a/var/mongoose/lib/pretty_size +++ b/var/mongoose/lib/pretty_size @@ -7,7 +7,8 @@ if {![exists -proc pretty_size]} { set size $($size / 1024.0) } - set size [string trimright [format "%.2f" $size] "0."] + set size [string trimright \ + [string trimright [format "%.2f" $size] "0"] "."] return "$size [lindex $units $i]" }