mirror of https://github.com/dirtbags/moth.git
Clean up points display
This commit is contained in:
parent
b85d328a62
commit
4bc5ba6eb3
|
@ -34,7 +34,7 @@ function print_bar(cat, team, n, d) {
|
||||||
" style=\"height: %.2f%%;\"" \
|
" style=\"height: %.2f%%;\"" \
|
||||||
" onmouseover=\"highlight('%s')\"" \
|
" onmouseover=\"highlight('%s')\"" \
|
||||||
" onmouseout=\"restore('%s')\">\n" \
|
" onmouseout=\"restore('%s')\">\n" \
|
||||||
"<!-- %s --> %s: %.2f\n" \
|
"<!-- %s --> %s: %s\n" \
|
||||||
"</div>",
|
"</div>",
|
||||||
team,
|
team,
|
||||||
100 * n / d,
|
100 * n / d,
|
||||||
|
@ -76,6 +76,9 @@ BEGIN {
|
||||||
colors[8] = "8db6cd"
|
colors[8] = "8db6cd"
|
||||||
ncolors = 9
|
ncolors = 9
|
||||||
|
|
||||||
|
# Only display two decimal places
|
||||||
|
CONVFMT = "%.2f"
|
||||||
|
|
||||||
# New point at least every 2.5 minutes
|
# New point at least every 2.5 minutes
|
||||||
interval = 150
|
interval = 150
|
||||||
tslen = 0
|
tslen = 0
|
||||||
|
|
Loading…
Reference in New Issue