summaryrefslogtreecommitdiff
path: root/startop
diff options
context:
space:
mode:
authorYan Wang <yawanng@google.com>2020-04-14 19:52:28 -0700
committerYan Wang <yawanng@google.com>2020-04-14 19:52:28 -0700
commit12b070b58a0f52c1c9589fca57c9e0334e5bec2f (patch)
tree80f758acd4599afdf3061f42a2c2d3ce62a09e27 /startop
parentf9551ba4e1a07deba4e172844782e0a3a3acbfe7 (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
Diffstat (limited to 'startop')
-rw-r--r--startop/iorap/functional_tests/src/com/google/android/startop/iorap/IorapWorkFlowTest.java2
1 files changed, 1 insertions, 1 deletions
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 c35dd3b783b1..5352be6f283f 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 class IorapWorkFlowTest {
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);
}