From ae3b6db296f8715c3faa5e5a6def747c85867164 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 21 Mar 2013 22:26:01 +0100 Subject: different server attributes in header --- module/web/static/js/views/headerView.js | 3 ++- module/web/templates/default/base.html | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'module') 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) ); diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 386cb4aa2..3d929fdc1 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -68,9 +68,9 @@