Fix for wp dt.
This commit is contained in:
parent
92e1079d26
commit
1af8ac0529
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user