src/top.ml: Don't depend on exact value of Failure argument.
[virt-top.git] / src / top.ml
index d4f7697..c38239c 100644 (file)
@@ -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)