Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Unified Diff: src/platform/init/dump-boot-stats.conf

Issue 1649007: metrics cleanup and fixes. (Closed)
Patch Set: Expose the pass/fail status. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/metrics/metrics_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/init/dump-boot-stats.conf
diff --git a/src/platform/init/dump-boot-stats.conf b/src/platform/init/dump-boot-stats.conf
index e59c2d47bf38ef9a23c050c627844225a0578a2e..4ab91853e1a3ff062e4580a20bd2e6d6b2630b0b 100644
--- a/src/platform/init/dump-boot-stats.conf
+++ b/src/platform/init/dump-boot-stats.conf
@@ -17,14 +17,10 @@ script
DISK_STATS=`cat /sys/block/sda/stat`
BOOT_TIME=`echo $UPTIME_STATS | cut -f 1 -d ' '`
- BOOT_TIME_INT=`echo $BOOT_TIME | cut -f 1 -d '.'`
- BOOT_TIME_FRACT=`echo $BOOT_TIME | cut -f 2 -d '.'`
- BOOT_TIME_MSECS=$((BOOT_TIME_INT * 1000 + BOOT_TIME_FRACT * 10))
-
SECTORS_READ=`echo $DISK_STATS | cut -f 3 -d ' '`
SECTORS_WRITTEN=`echo $DISK_STATS | cut -f 7 -d ' '`
- /usr/bin/metrics_client BootTime $BOOT_TIME_MSECS &
+ /usr/bin/metrics_client -t BootTime $BOOT_TIME &
/usr/bin/metrics_client BootSectorsRead $SECTORS_READ &
/usr/bin/metrics_client BootSectorsWritten $SECTORS_WRITTEN &
« no previous file with comments | « no previous file | src/platform/metrics/metrics_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698