mirror of
https://github.com/Carve/qbittorrent-webui-cjratliff.com.git
synced 2024-11-12 01:40:48 +01:00
show percentage space used
This commit is contained in:
parent
2582182ce8
commit
5de26e75b0
@ -850,7 +850,7 @@ window.addEvent('load', function() {
|
||||
}
|
||||
}
|
||||
|
||||
$('torrentsTotalSize').set('html', 'Total Download Size: %1'.replace("%1", window.qBittorrent.Misc.friendlyUnit(totalSize)));
|
||||
$('torrentsTotalSize').set('html', 'Total Downloads: %1 (%2\%)'.replace("%1", window.qBittorrent.Misc.friendlyUnit(totalSize)).replace("%2", ((totalSize/(totalSize + serverState.free_space_on_disk))*100).toFixed(2)));
|
||||
$('freeSpaceOnDisk').set('html', 'Free space: %1'.replace("%1", window.qBittorrent.Misc.friendlyUnit(serverState.free_space_on_disk)));
|
||||
$('DHTNodes').set('html', 'DHT: %1 nodes'.replace("%1", serverState.dht_nodes));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user