Quantcast
Channel: All EdgeRouter posts
Viewing all articles
Browse latest Browse all 60861

Re: PHP numeric casting failures

$
0
0

, the 2TB limit will be hit with the code modified as I did. Multiplying by 1024 as you did will make that a 2GB limit which will get hit rather quickly. And the * 1024 also does not give you any better information at the byte level since vnstat only records at the KB level.

 

Most of the int problems are not because of 32 bits (other than the 2TB limit) but rather as I discuss at length above the failire of this php to do type conversions properly.


Viewing all articles
Browse latest Browse all 60861

Trending Articles