git.annexia.org
/
virt-p2v.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe5a3a
)
Print progress every 5 seconds.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Feb 2008 19:16:50 +0000
(19:16 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Feb 2008 19:16:50 +0000
(19:16 +0000)
virt-p2v
patch
|
blob
|
history
diff --git
a/virt-p2v
b/virt-p2v
index
6133595
..
133cee1
100755
(executable)
--- a/
virt-p2v
+++ b/
virt-p2v
@@
-1491,8
+1491,8
@@
MAC address: %s"
let bytes_sent = Int64.add bytes_sent (Int64.of_int n) in
let last_printed_at =
let now = gettimeofday () in
- (* Print progress
once per second
. *)
- if now -. last_printed_at >
1
. then (
+ (* Print progress
every few seconds
. *)
+ if now -. last_printed_at >
5
. then (
let elapsed = Int64.to_float bytes_sent /. Int64.to_float size in
let secs_elapsed = now -. start in
printf "%.0f%%" (100. *. elapsed);