summaryrefslogtreecommitdiffstats
path: root/module/web/static
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 22:26:01 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 22:26:01 +0100
commitae3b6db296f8715c3faa5e5a6def747c85867164 (patch)
treee738c047301f556de5571eea85f56b929994e204 /module/web/static
parentsubline for global progress (diff)
downloadpyload-ae3b6db296f8715c3faa5e5a6def747c85867164.tar.xz
different server attributes in header
Diffstat (limited to 'module/web/static')
-rw-r--r--module/web/static/js/views/headerView.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/web/static/js/views/headerView.js b/module/web/static/js/views/headerView.js
index 7705b7076..9e18734d4 100644
--- a/module/web/static/js/views/headerView.js
+++ b/module/web/static/js/views/headerView.js
@@ -76,7 +76,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
shadowSize: 0,
color: "#fee247"
},
- xaxis: { ticks: [], mode: "time" },
+ xaxis: { ticks: [] },
yaxis: { ticks: [], min: 1, autoscaleMargin: 0.1, tickFormatter: function(data) {
return formatSize(data * 1024);
}, position: "right" },
@@ -98,6 +98,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
// queue/processing size?
var status = this.status.toJSON();
+ status.maxspeed = _.max(this.speeds, function(speed) {return speed[1];})[1] * 1024;
this.$('.status-block').html(
this.templateStatus(status)
);