From cc84763f9e53b6620ccd437a434bfd90d6d761c2 Mon Sep 17 00:00:00 2001 From: Shiar Date: Mon, 12 Nov 2007 15:05:03 +0100 Subject: [PATCH] screp: show number of played frames Last frame (and it's time at fastest) for each player. No more need to show general last frame ('duration'). --- screp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/screp b/screp index 10a2554..4b1f033 100755 --- 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, -- 2.30.0