Commit fa06fee4 authored by l4u's avatar l4u
Browse files

Fixes #18 hide time when time data is not retrieved from the redis

parent 23970a7c
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -11,12 +11,16 @@ var FnordMetric = (function(){
  }

  function formatTimeOfDay(_time){
    if(_time === null) {
      return "";
    } else {
      var time = new Date();
      time.setTime(_time*1000);
      return decPrint(time.getHours()) + ':' +
             decPrint(time.getMinutes()) + ':' +
             decPrint(time.getSeconds());
    }
  }

  function formatTimeRange(range){
    if (range < 60){