summaryrefslogtreecommitdiff
path: root/startop/scripts/iorap/compiler.py
diff options
context:
space:
mode:
authorYan Wang <yawanng@google.com>2019-09-03 11:17:22 -0700
committerYan Wang <yawanng@google.com>2019-09-03 11:18:15 -0700
commitab89ecbc8210249c7c81c3e9d24b45c378acf652 (patch)
treef1feced81542619cfd8196ea915f3871d5837ecb /startop/scripts/iorap/compiler.py
parent7febe4c518d257f56c1a8a5dc578420294d933cc (diff)
startop: Fix comments in gerrit CL 9172239.
Test: pytest Change-Id: I706730c8d54e575e26ff0e2bdbb668d2e70a5c2e
Diffstat (limited to 'startop/scripts/iorap/compiler.py')
-rwxr-xr-xstartop/scripts/iorap/compiler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/startop/scripts/iorap/compiler.py b/startop/scripts/iorap/compiler.py
index c940fe988855..17b58c19ef28 100755
--- a/startop/scripts/iorap/compiler.py
+++ b/startop/scripts/iorap/compiler.py
@@ -190,6 +190,7 @@ def calc_trace_end_time(trace2db: Trace2Db,
MmFilemapAddToPageCache.raw_ftrace_entry).order_by(
RawFtraceEntry.timestamp).first()
+ # total_seconds() will return a float number.
return first_event.raw_ftrace_entry.timestamp + trace_duration.total_seconds()
def query_add_to_page_cache(trace2db: Trace2Db, trace_duration: Optional[timedelta]):