mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-21 10:16:34 +00:00
2^60 is Exbi (Ei) not Zebi (Zi)
This commit is contained in:
parent
7dc3de34f8
commit
b65bd46b41
@ -199,7 +199,7 @@ bool Parser::is_only_digits(const char* s)
|
||||
|
||||
int Parser::format_bytes(uint64_t filesize, char* buf, size_t len)
|
||||
{
|
||||
filesize *= 100; // Warning - If filesize up in the Zi range (2^60), we will overflow.
|
||||
filesize *= 100; // Warning - If filesize up in the Ei range (2^60), we will overflow.
|
||||
uint32_t tmp = (uint32_t) filesize; // cast to unsigned int here to saye ugly casts in next line
|
||||
if(filesize < D_FILE_SIZE_DIVIDER) return snprintf_P(buf, len, PSTR("%u " D_FILE_SIZE_BYTES), tmp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user