From ae3b6db296f8715c3faa5e5a6def747c85867164 Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Thu, 21 Mar 2013 22:26:01 +0100
Subject: different server attributes in header

---
 module/web/static/js/views/headerView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'module/web/static/js/views')

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)
                 );
-- 
cgit v1.2.3