git.annexia.org
/
virt-top.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/top.ml: Don't depend on exact value of Failure argument.
[virt-top.git]
/
src
/
top.ml
diff --git
a/src/top.ml
b/src/top.ml
index
d4f7697
..
c38239c
100644
(file)
--- a/
src/top.ml
+++ b/
src/top.ml
@@
-420,7
+420,7
@@
and change_delay () =
delay := int_of_float (newdelay *. 1000.); false
)
with
- Failure
"float_of_string"
->
+ Failure
_
->
print_msg (s_"Not a valid number"); true in
refresh ();
sleep (if error then 2 else 1)