lib/fnordmetric/timeline_widget.rb in fnordmetric-0.7.4 vs lib/fnordmetric/timeline_widget.rb in fnordmetric-0.7.5
- old
+ new
@@ -5,10 +5,10 @@
super.merge(
:gauges => gauges.map(&:name),
:gauge_titles => gauge_titles,
:start_timestamp => ticks.first,
- :end_timestamp => ticks.last,
+ :end_timestamp => ticks.max,
:autoupdate => (@opts[:autoupdate] || 60),
:include_current => !!@opts[:include_current],
:plot_style => (@opts[:plot_style] || 'line'),
:tick => tick
)
\ No newline at end of file