mirror of https://github.com/dirtbags/tanks.git
720 rounds now
This commit is contained in:
parent
962e08bd50
commit
37e337a99f
|
@ -25,7 +25,7 @@ fn=$(printf "round-%04d.html" $next)
|
||||||
rfn=results$$.txt
|
rfn=results$$.txt
|
||||||
|
|
||||||
# Clean up old games
|
# Clean up old games
|
||||||
ofn=$(printf "round-%04d.html" $(expr $next - 20))
|
ofn=$(printf "round-%04d.html" $(expr $next - 720))
|
||||||
echo "Removing $ofn"
|
echo "Removing $ofn"
|
||||||
rm -f $ofn
|
rm -f $ofn
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ BEGIN {
|
||||||
print " <h2>Rounds</h2>";
|
print " <h2>Rounds</h2>";
|
||||||
print " <ul>";
|
print " <ul>";
|
||||||
getline rounds < "next-round";
|
getline rounds < "next-round";
|
||||||
for (i = rounds - 1; i >= rounds - 21; i -= 1) {
|
for (i = rounds - 1; (i >= rounds - 721) && (i > 0); i -= 1) {
|
||||||
printf("<li><a href=\"round-%04d.html\">%04d</a></li>\n", i, i);
|
printf("<li><a href=\"round-%04d.html\">%04d</a></li>\n", i, i);
|
||||||
}
|
}
|
||||||
print " </ul>";
|
print " </ul>";
|
||||||
|
|
Loading…
Reference in New Issue