Fix for wp dt.

This commit is contained in:
Adam Anderly 2014-11-03 18:02:54 -06:00 committed by Thaddee Tyl
parent 92e1079d26
commit 1af8ac0529

View File

@ -2185,13 +2185,13 @@ cache(function(data, match, sendBadge, request) {
return;
}
badgeData.text[1] = metric(total);
if (monthly === 0) {
if (total === 0) {
badgeData.colorscheme = 'red';
} else if (monthly < 10) {
} else if (total < 10) {
badgeData.colorscheme = 'yellow';
} else if (monthly < 100) {
} else if (total < 100) {
badgeData.colorscheme = 'yellowgreen';
} else if (monthly < 1000) {
} else if (total < 1000) {
badgeData.colorscheme = 'green';
} else {
badgeData.colorscheme = 'brightgreen';