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

Unified Diff: src/platform/init/chromeos_shutdown

Issue 1642018: Update the libmetrics API to match the new Chrome interface. (Closed)
Patch Set: Address review comments. 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/init/chromeos_startup » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/init/chromeos_shutdown
diff --git a/src/platform/init/chromeos_shutdown b/src/platform/init/chromeos_shutdown
index c4e2d8af4065fdc06bda9b0cf154ed8bef2df7b6..fe06844e211c657d822deb16f5c864471bf08f95 100755
--- a/src/platform/init/chromeos_shutdown
+++ b/src/platform/init/chromeos_shutdown
@@ -7,11 +7,7 @@
# Shutdown is best-effort. We don't want to die on errors.
set +e
-# Measure shutdown time
-if [ ! -d "/var/log/metrics" ]; then
- mkdir -p /var/log/metrics
-fi
-
+# Measure shutdown time. /var/log/metrics is created by chromeos_startup.
cut -f 1 -d ' ' /proc/uptime > /var/log/metrics/uptime_shutdown_start
cat /sys/block/sda/stat > /var/log/metrics/disk_shutdown_start
« no previous file with comments | « no previous file | src/platform/init/chromeos_startup » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698