Skip to content

Commit

Permalink
Merge pull request #346 from AlexanderZagaynov/fixes/if_last_timestamp
Browse files Browse the repository at this point in the history
fix undefined method issue

(cherry picked from commit 066e683)

https://bugzilla.redhat.com/show_bug.cgi?id=1896439
  • Loading branch information
agrare authored and simaishi committed Nov 12, 2020
1 parent cfeeb13 commit 691bd3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def perf_collect_metrics(interval_name, start_time = nil, end_time = nil)

# add last minute's value
ts, value = timestamped_values.to_a.last
counter_values.store_path(ts.iso8601, counter_info.counter_key, value)
counter_values.store_path(ts.iso8601, counter_info.counter_key, value) if ts
end
end

Expand Down

0 comments on commit 691bd3e

Please sign in to comment.