screp: show slot numbers in player summary
authorShiar <shiar@shiar.org>
Sat, 12 Jan 2008 02:57:48 +0000 (02:57 +0000)
committerShiar <shiar@shiar.org>
Thu, 17 Jan 2008 05:37:49 +0000 (05:37 +0000)
Useful to know player id for later processing.

screp

diff --git a/screp b/screp
index edf643e8a57a8e4011f67c44a9c6c0c35634e443..4b896b58c8b20e98e030c11c0763adde85d45b43 100755 (executable)
--- a/screp
+++ b/screp
@@ -524,7 +524,8 @@ for my $player (sort keys %stats) {
        $row->{last} ||= $map->[-1][0];
 #      printf("%-16s%6d actions (%3d micro,%4d macro);%4d APM\n",
        my $name = showplayer($player);
-       printf("%-16s%6d actions in%7d frames (%s) = %d APM\n",
+       printf("%d %-16s%6d actions in%7d frames (%s) = %d APM\n",
+               $row->{slot},
                $name, $row->{actions}, $row->{last},
                showtime($row->{last}),
 #              $row->{micro} / $row->{last} * 60 / .042 * 1.05,