]> git.pond.sub.org Git - empserver/commitdiff
tests/normalize.pl: Drop match option g where it's not necessary
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 11 Jan 2014 11:26:07 +0000 (12:26 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Jan 2014 09:09:16 +0000 (10:09 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
tests/normalize.pl

index 357b6637f4f023444c1863e2ce8cd03e5be2e533..87367913ce33b0da7632e1d142bf7a949fc07941 100755 (executable)
@@ -62,9 +62,9 @@ while (<>) {
        $_ = norm_ctime($_);
        ### Host environment in logs
        # getrusage() results in server.log
-       s/(End update|done assembling paths) .* user .* system/$1 0.0 user 0.0 system/g;
+       s/(End update|done assembling paths) .* user .* system/$1 0.0 user 0.0 system/;
        # PID in server.log
-       s/(Empire server \(pid) [0-9]+(\) started)/$1 42$2/g;
+       s/(Empire server \(pid) [0-9]+(\) started)/$1 42$2/;
        ### Harmless races
        # shutdown wins race with logout
        next if /Waiting for player threads to terminate/;
@@ -81,13 +81,13 @@ while (<>) {
 
     ### Formatted time
     # nat_timeused in prompt
-    s/^\[[0-9]+(:[0-9]+\] Command \:)/[0$1/g;
+    s/^\[[0-9]+(:[0-9]+\] Command \:)/[0$1/;
     # TODO command play column time
     # result of ctime() in many commands
     $_ = norm_ctime($_)
        unless $dump;
     ### Time values in legacy dumps
-    s/(DUMP (SECTOR|SHIPS|PLANES|LAND UNITS|NUKES|LOST ITEMS)) [0-9]+$/$1 0/g;
+    s/(DUMP (SECTOR|SHIPS|PLANES|LAND UNITS|NUKES|LOST ITEMS)) [0-9]+$/$1 0/;
     s/ [0-9]+$/ 0/
        if $dump eq 'LOST ITEMS';
     ### Time values in xdump