Fix time axis for node and server view

Nope, the current month is not a valid minute
This commit is contained in:
Bent Haase 2016-11-19 21:57:58 +01:00 committed by Dane Everitt
parent b8a6a15b08
commit 57d62c4ed3
2 changed files with 2 additions and 2 deletions

View file

@ -674,7 +674,7 @@ $(document).ready(function () {
memoryData.push(parseInt(data.stats.memory / (1024 * 1024))); memoryData.push(parseInt(data.stats.memory / (1024 * 1024)));
var m = new Date(); var m = new Date();
timeLabels.push($.format.date(new Date(), 'HH:MM:ss')); timeLabels.push($.format.date(new Date(), 'HH:mm:ss'));
CPUChart.update(); CPUChart.update();
MemoryChart.update(); MemoryChart.update();

View file

@ -300,7 +300,7 @@ $(window).load(function () {
memoryData.push(parseInt(proc.data.memory.total / (1024 * 1024))); memoryData.push(parseInt(proc.data.memory.total / (1024 * 1024)));
var m = new Date(); var m = new Date();
timeLabels.push($.format.date(new Date(), 'HH:MM:ss')); timeLabels.push($.format.date(new Date(), 'HH:mm:ss'));
CPUChart.update(); CPUChart.update();
MemoryChart.update(); MemoryChart.update();