]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
added month-day to log, mt
authorHades DAQ <hadaq@hadesdaqp04.gsi.de>
Tue, 24 Apr 2018 21:47:47 +0000 (23:47 +0200)
committerHades DAQ <hadaq@hadesdaqp04.gsi.de>
Tue, 24 Apr 2018 21:47:47 +0000 (23:47 +0200)
utils/chat_push

index 440afb2f2451322134a08c8a1faa4e4ce6ae3e52..365033e55ac68dc3fa9ba1f507b6b93b46a254e6 100755 (executable)
@@ -57,7 +57,7 @@ while ( defined (my $input = $term->readline($prompt)) ) {
     chomp;
 
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
-    $outstr = sprintf "%2.2d:%2.2d:%2.2d:  %s", $hour, $min, $sec , $_;
+    $outstr = sprintf "%2.2d-%2.2d %2.2d:%2.2d:%2.2d:  %s", $mon+1, $mday, $hour, $min, $sec , $_;
     $ln++;
 
     my $pr = print $fh_out $outstr . "\n";