mirror of https://github.com/dirtbags/tanks.git
fix infinite loop in summary.awk
This commit is contained in:
parent
926de8edc1
commit
29240f7331
|
@ -25,7 +25,7 @@ BEGIN {
|
||||||
print " <h2>Rankings</h2>";
|
print " <h2>Rankings</h2>";
|
||||||
print " <p>Over the last " ngames" games only.</p>";
|
print " <p>Over the last " ngames" games only.</p>";
|
||||||
print " <ol>";
|
print " <ol>";
|
||||||
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)
|
fn = sprintf("round-%04d.html", i)
|
||||||
while (getline < fn) {
|
while (getline < fn) {
|
||||||
if ($2 == "score") {
|
if ($2 == "score") {
|
||||||
|
|
Loading…
Reference in New Issue