improve file previews

This commit is contained in:
2020-06-14 16:02:15 +02:00
parent 881796b416
commit 4f0393a674
3 changed files with 32 additions and 10 deletions

View File

@@ -27,8 +27,8 @@ function Toolbar(viewer) {
Toolbar.prototype.setFile = function(file) {
this.currentFile = file
this.spanViews.innerText = file.views
this.spanDownloads.innerText = Math.round((file.bandwidth_used/file.size)*10)/10
this.spanViews.innerText = formatThousands(file.views)
this.spanDownloads.innerText = formatThousands(Math.round(file.bandwidth_used/file.size))
this.spanSize.innerText = formatDataVolume(file.size, 3)
}