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

Unified Diff: src/scripts/file_copy.py

Issue 848002: Changes to enable dev in stateful partition for usb and startup (Closed)
Patch Set: Add legacy support Created 10 years, 9 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 | « src/platform/init/chromeos_startup ('k') | src/scripts/image_to_usb.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/file_copy.py
diff --git a/src/scripts/file_copy.py b/src/scripts/file_copy.py
index 33a693b2f9d809741d2795e70da113157cedb5bf..8599b84eefad06f0299266646f1e75ca1b126a2b 100755
--- a/src/scripts/file_copy.py
+++ b/src/scripts/file_copy.py
@@ -86,10 +86,10 @@ def main(argv):
bytes_copied += bytes_written
buf = os.read(if_fd, arg_bs)
- t2 = time.time()
-
os.close(if_fd)
os.close(of_fd)
+
+ t2 = time.time()
# print timing info
print >> sys.stderr, 'copy %d bytes took %0.3f s' % (bytes_copied, t2 - t1)
« no previous file with comments | « src/platform/init/chromeos_startup ('k') | src/scripts/image_to_usb.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698