From 7bf616f6b8375dc8afd409c027b862a558e1489c Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 6 Apr 2015 21:02:18 +0300 Subject: [PATCH] fixed chart colors --- models/node.js | 2 +- public/js/controllers.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/node.js b/models/node.js index 2e33464..b6fcfd1 100644 --- a/models/node.js +++ b/models/node.js @@ -31,7 +31,7 @@ var Node = function Node(data) uptime: 0, lastUpdate: 0 }; - this.blockHistory = Array(MAX_HISTORY); + this.blockHistory = []; this.uptime = { started: null, history: [] diff --git a/public/js/controllers.js b/public/js/controllers.js index ea4898c..c7f86fa 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -149,10 +149,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { tooltipSuffix: 'ms', colorMap: jQuery.range_map({ '0:1': '#10a0de', - '1:5000': '#7bcc3a', - '5001:12000': '#FFD162', - '12001:20000': '#ff8a00', - '20001:': '#F74B4B' + '1:1000': '#7bcc3a', + '1001:3000': '#FFD162', + '3001:7000': '#ff8a00', + '7001:': '#F74B4B' }) }); }