From a294c084b3d2fa57c5045cfb4d651e59ed53b70e Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 13 Jan 2013 22:48:38 +0000 Subject: [PATCH] show streaming speed git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1331 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- var/mongoose/cgi-bin/browse/browse.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 8347c34..2689ce7 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.10.2-1 +Version: 0.10.2-2 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.0.3),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73-1),jim-cgi(>=0.5),jim-binary,service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.9-1),hmt(>=1.1.10),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2),smartmontools,tmenu(>=1.04) diff --git a/var/mongoose/cgi-bin/browse/browse.js b/var/mongoose/cgi-bin/browse/browse.js index 798dbe8..c720c2c 100755 --- a/var/mongoose/cgi-bin/browse/browse.js +++ b/var/mongoose/cgi-bin/browse/browse.js @@ -847,7 +847,13 @@ var dmenuclick = function(action, el, pos) var mb = size / (1024 * 1024); mb = mb|0; if (streamsize && size > streamsize) - $('#streamstatus').text(mb + ' MiB (growing)'); + { + rate = (size - streamsize) * 8.0 / + (3 * 1048576); + $('#streamstatus').text(mb + + ' MiB (growing @' + rate.toFixed(2) + + ' Mib/s)'); + } else $('#streamstatus').text(mb + ' MiB'); streamsize = size;