Fix #157: calculation of limits for min/max share on 32 bit architectures.

This commit is contained in:
Jan Vidar Krey 2010-12-20 23:18:26 +01:00
parent eaf867d513
commit 67eabb5a98
1 changed files with 6 additions and 2 deletions

View File

@ -1212,12 +1212,16 @@ uint64_t hub_get_shared_files(struct hub_info* hub)
uint64_t hub_get_min_share(struct hub_info* hub)
{
return 1024 * 1024 * hub->config->limit_min_share;
uint64_t size = hub->config->limit_min_share;
size *= (1024 * 1024);
return size;
}
uint64_t hub_get_max_share(struct hub_info* hub)
{
return 1024 * 1024 * hub->config->limit_max_share;
uint64_t size = hub->config->limit_max_share;
size *= (1024 * 1024);
return size;
}
size_t hub_get_min_slots(struct hub_info* hub)