show streaming speed

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1331 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2013-01-13 22:48:38 +00:00
parent 7172c7c107
commit a294c084b3
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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;