1
0
Fork 0
forked from len0rd/rockbox

XX.XM was badly formatted

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2972 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-12-12 02:25:30 +00:00
parent 00b2aada9f
commit a63f527028

View file

@ -37,7 +37,7 @@ char *num2max5(unsigned int bytes, char *max5)
}
if(bytes < (100*ONE_MEGABYTE)) {
/* 'XX.XM' is good as long as we're less than 100 megs */
snprintf(max5, 6, "%4d.%0dM",
snprintf(max5, 6, "%2d.%0dM",
bytes/ONE_MEGABYTE,
(bytes%ONE_MEGABYTE)/(ONE_MEGABYTE/10) );
return max5;