(trunk web) #3413 "download speed bad format in web interface" -- fixed.

This commit is contained in:
Charles Kerr
2010-07-10 02:05:25 +00:00
parent 52c04a0d06
commit 71cadc02b6
4 changed files with 114 additions and 72 deletions

View File

@@ -1554,7 +1554,7 @@ tr_realpath( const char * path, char * resolved_path )
struct formatter_unit
{
char * name;
unsigned long value;
uint64_t value;
};
struct formatter_units
@@ -1570,7 +1570,7 @@ formatter_init( struct formatter_units * units,
const char * kb, const char * mb,
const char * gb, const char * tb )
{
unsigned long value = kilo;
uint64_t value = kilo;
units->units[TR_FMT_KB].name = tr_strdup( kb );
units->units[TR_FMT_KB].value = value;