commit | 12b070b58a0f52c1c9589fca57c9e0334e5bec2f | [log] [tgz] |
---|---|---|
author | Yan Wang <yawanng@google.com> | Tue Apr 14 19:52:28 2020 -0700 |
committer | Yan Wang <yawanng@google.com> | Tue Apr 14 19:52:28 2020 -0700 |
tree | 80f758acd4599afdf3061f42a2c2d3ce62a09e27 | |
parent | f9551ba4e1a07deba4e172844782e0a3a3acbfe7 [diff] |
iorap-functional-test: Add leading 0 to timestamp. For example: 100001ms should be 100.001s instead of 100.1s Bug: 154036462 Test: atest iorap-functional-tests Change-Id: I9502358539019573af106d9dcec2681ea406598b
diff --git a/startop/iorap/functional_tests/src/com/google/android/startop/iorap/IorapWorkFlowTest.java b/startop/iorap/functional_tests/src/com/google/android/startop/iorap/IorapWorkFlowTest.java index c35dd3b..5352be6 100644 --- a/startop/iorap/functional_tests/src/com/google/android/startop/iorap/IorapWorkFlowTest.java +++ b/startop/iorap/functional_tests/src/com/google/android/startop/iorap/IorapWorkFlowTest.java
@@ -397,7 +397,7 @@ public LogcatTimestamp() throws Exception{ long currentTimeMillis = System.currentTimeMillis(); epochTime = String.format( - "%d.%d", currentTimeMillis/1000, currentTimeMillis%1000); + "%d.%03d", currentTimeMillis/1000, currentTimeMillis%1000); Log.i(TAG, "Current logcat timestamp is " + epochTime); }