From 1aff1a0000f80ea6a4b8f7019a2bc9c0ff31dec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 5 Feb 2014 15:39:50 +0100 Subject: [PATCH] mini improvement to xasis format (now shows just hours for larger time spans) --- src/app/directives/grafanaGraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index b2f4296dc69..dbfa71c75bd 100644 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -269,11 +269,11 @@ function (angular, $, kbn, moment, _) { if(_int >= 10000) { return "%Y-%m-%d"; } - if(_int >= 60) { + if(_int >= 700) { return "%H:%M
%m-%d"; } - return "%H:%M:%S"; + return "%H:%M"; } var $tooltip = $('
');