screp: show number of played frames
authorShiar <shiar@shiar.org>
Mon, 12 Nov 2007 14:05:03 +0000 (15:05 +0100)
committerShiar <shiar@shiar.org>
Mon, 12 Nov 2007 14:05:24 +0000 (15:05 +0100)
Last frame (and it's time at fastest) for each player.
No more need to show general last frame ('duration').

screp

diff --git a/screp b/screp
index 10a2554826707ef615ef04465ce76b808b43c8c2..4b1f033159b8614100d43d28a30f0b6121fdc7f2 100755 (executable)
--- a/screp
+++ b/screp
@@ -475,8 +475,6 @@ if ($SHOWWARN) {
        }
 }
 
-printf "duration: %s\n", showtime($map->[-1][0]);
-
 my %cmdmacro = map {$_ => 1} (
        (map {$_, "cancel $_"}
                qw/train build hatch research upgrade arm/,
@@ -498,9 +496,9 @@ for my $player (sort keys %stats) {
        my $row = $stats{$player};
        $row->{last} ||= $map->[-1][0];
 #      printf("%d:%6d actions (%3d micro,%4d macro);%4d APM\n",
-       printf("%d:%6d actions;%4d APM\n",
-               $player,
-               $row->{actions},
+       printf("%d:%6d actions in%7d frames (%s) = %d APM\n",
+               $player, $row->{actions}, $row->{last},
+               showtime($row->{last}),
 #              $row->{micro} / $row->{last} * 60 / .042 * 1.05,
 #              $row->{macro} / $row->{last} * 60 / .042 * 1.05,
                $row->{gameactions} / $row->{last} * 60 / .042 * 1.042,