Changes the log format to include a timestamp.
authorKim Nguyễn <kn@lri.fr>
Wed, 22 Feb 2012 09:15:34 +0000 (10:15 +0100)
committerKim Nguyễn <kn@lri.fr>
Wed, 22 Feb 2012 09:15:34 +0000 (10:15 +0100)
utils/alarm.ml

index 5a9c83f..3387b45 100644 (file)
@@ -71,7 +71,7 @@ let rec monitor pid start finish mem fmt =
       else
        begin
          if not !Options.quiet then
-           fprintf fmt "[%f] Memory: current=%ikb max=%ikb\n%!"
+           fprintf fmt "[% 11.3f] Memory: current=%ikb max=%ikb\n%!"
              (current_time -. start) current_mem !max_mem;
          usleep !Options.interval;
          monitor pid start finish mem fmt