From 91330c5b31b4b0d495dd693d124979b9c3b21cfd Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Thu, 20 Sep 2012 23:50:36 +0530 Subject: [PATCH] fix for end_time less than start_time --- js/server_status_monitor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index 244391540a..e5c0e88491 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1213,6 +1213,11 @@ $(function() { return; selectionTimeDiff.push(datapos.xaxis); + + if(selectionTimeDiff[1] < selectionTimeDiff[0]) { + selectionTimeDiff = []; + return; + } //get date from timestamp var min = new Date(Math.ceil(selectionTimeDiff[0])); var max = new Date(Math.ceil(selectionTimeDiff[1]));