Fix name of deleted host.
authorrich <rich>
Mon, 11 Dec 2006 15:34:36 +0000 (15:34 +0000)
committerrich <rich>
Mon, 11 Dec 2006 15:34:36 +0000 (15:34 +0000)
tools/copy_host.ml

index fd98c8c..a2c1bc4 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Use 'copy_host --help' for usage.
  *
- * $Id: copy_host.ml,v 1.4 2006/12/11 15:28:50 rich Exp $
+ * $Id: copy_host.ml,v 1.5 2006/12/11 15:34:36 rich Exp $
  *)
 
 open Printf
@@ -394,7 +394,7 @@ let () =
   if dhost_exists then (
     if overwrite then (
       (* Rename the destination host. *)
-      let name = sprintf "deleted-%g" (Unix.time ()) in
+      let name = sprintf "deleted-%.0f" (Unix.time ()) in
 
       printf "Renaming old host %s to %s\n%!" dcanonical_hostname name;