Skip to content

Commit f157ebf

Browse files
juliayakovlevfruch
authored andcommitted
fix(hdrhistogram): handle case when intervals larger than time range
Handle case when interval is larger than the time range in histogram summary by interval. If the specified interval is greater than the difference between end_time and start_time, use the actual time range as the window step to avoid empty intervals. (cherry picked from commit 0f38802)
1 parent 0cffffa commit f157ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcm/utils/hdrhistogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def build_histograms_summary_with_interval(self, path: str,
163163
try:
164164
start_ts = int(self.start_time)
165165
end_ts = int(self.end_time)
166-
if end_ts - start_ts < TIME_INTERVAL:
166+
if end_ts - start_ts < interval:
167167
window_step = int(end_ts - start_ts)
168168
else:
169169
window_step = interval or TIME_INTERVAL

0 commit comments

Comments
 (0)