1000 is k, not K

This commit is contained in:
gorhill 2014-12-24 08:11:22 -05:00
parent 03b6113b5a
commit f60f149531
1 changed files with 3 additions and 3 deletions

View File

@ -41,11 +41,11 @@ exports.formatCount = function(count) {
var s = count.toFixed(0); var s = count.toFixed(0);
if ( count >= 1000 ) { if ( count >= 1000 ) {
if ( count < 10000 ) { if ( count < 10000 ) {
s = '>' + s.slice(0,1) + 'K'; s = '>' + s.slice(0,1) + 'k';
} else if ( count < 100000 ) { } else if ( count < 100000 ) {
s = s.slice(0,2) + 'K'; s = s.slice(0,2) + 'k';
} else if ( count < 1000000 ) { } else if ( count < 1000000 ) {
s = s.slice(0,3) + 'K'; s = s.slice(0,3) + 'k';
} else if ( count < 10000000 ) { } else if ( count < 10000000 ) {
s = s.slice(0,1) + 'M'; s = s.slice(0,1) + 'M';
} else { } else {