mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 04:36:38 +00:00
One too many file system dividers used for megabyte comparison.
This commit is contained in:
parent
33f3c36915
commit
7dc3de34f8
@ -211,7 +211,7 @@ int Parser::format_bytes(uint64_t filesize, char* buf, size_t len)
|
|||||||
|
|
||||||
filesize /= D_FILE_SIZE_DIVIDER;
|
filesize /= D_FILE_SIZE_DIVIDER;
|
||||||
tmp = (uint32_t) filesize;
|
tmp = (uint32_t) filesize;
|
||||||
if(filesize < D_FILE_SIZE_DIVIDER * D_FILE_SIZE_DIVIDER * 100)
|
if(filesize < D_FILE_SIZE_DIVIDER * 100)
|
||||||
return snprintf_P(buf, len, PSTR("%u" D_DECIMAL_POINT "%02u " D_FILE_SIZE_MEGABYTES), tmp / 100,
|
return snprintf_P(buf, len, PSTR("%u" D_DECIMAL_POINT "%02u " D_FILE_SIZE_MEGABYTES), tmp / 100,
|
||||||
tmp % 100);
|
tmp % 100);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user