diff --git a/summary.awk b/summary.awk index 88da22b..d98975e 100755 --- a/summary.awk +++ b/summary.awk @@ -25,7 +25,7 @@ BEGIN { print "

Rankings

"; print "

Over the last " ngames" games only.

"; print "
    "; - for (i = rounds - ngames - 1; i < rounds; i += 1) { + for (i = rounds - ngames - 1; i > 0 && i < rounds; i += 1) { fn = sprintf("round-%04d.html", i) while (getline < fn) { if ($2 == "score") {