720 rounds now

This commit is contained in:
Neale Pickett 2014-07-28 20:42:49 +00:00
parent 962e08bd50
commit 37e337a99f
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ fn=$(printf "round-%04d.html" $next)
rfn=results$$.txt
# Clean up old games
ofn=$(printf "round-%04d.html" $(expr $next - 20))
ofn=$(printf "round-%04d.html" $(expr $next - 720))
echo "Removing $ofn"
rm -f $ofn

View File

@ -75,7 +75,7 @@ BEGIN {
print " <h2>Rounds</h2>";
print " <ul>";
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);
}
print " </ul>";