projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
raise exception if test start time can't be estimated
[fio.git]
/
tools
/
hist
/
fio-histo-log-pctiles.py
diff --git
a/tools/hist/fio-histo-log-pctiles.py
b/tools/hist/fio-histo-log-pctiles.py
index a150e8e30250fb22420b3334397e411bf57a2eec..81f6de6e1a1e20842d4c83fc87594f9fe0911a6c 100755
(executable)
--- a/
tools/hist/fio-histo-log-pctiles.py
+++ b/
tools/hist/fio-histo-log-pctiles.py
@@
-115,6
+115,8
@@
def parse_hist_file(logfn, buckets_per_interval, log_hist_msec):
elif len(intervals) > 1:
(second_timestamp, _, _, _) = intervals[1]
start_time = first_timestamp - (second_timestamp - first_timestamp)
elif len(intervals) > 1:
(second_timestamp, _, _, _) = intervals[1]
start_time = first_timestamp - (second_timestamp - first_timestamp)
+ else:
+ raise FioHistoLogExc('no way to estimate test start time')
(end_timestamp, _, _, _) = intervals[-1]
return (intervals, start_time, end_timestamp)
(end_timestamp, _, _, _) = intervals[-1]
return (intervals, start_time, end_timestamp)