Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-693 Make default date-picker interval last 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Oct 16, 2015
1 parent e7de218 commit b144f87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module HawkularMetrics {
private $location:ng.ILocationService) {
$scope.ac = this;

this.alertsTimeOffset = $routeParams.timeOffset || 3600000;
this.alertsTimeOffset = $routeParams.timeOffset || 3600000 * 12;
// If the end time is not specified in URL use current time as end time
this.alertsTimeEnd = $routeParams.endTime ? $routeParams.endTime : Date.now();
this.alertsTimeStart = this.alertsTimeEnd - this.alertsTimeOffset;
Expand Down

0 comments on commit b144f87

Please sign in to comment.