1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented XenForo_Locale::numberFormat() size option

Discussion in 'Closed Suggestions' started by digitalpoint, Apr 26, 2012.

  1. digitalpoint

    digitalpoint Well-Known Member

    It would be nice if the "size" option of this function supported more than KB and MB... Probably good enough when calculating size of attachments, but when using it for other things it can start to look silly without GB and TB support (especially when building things that track cumulative stats)...

    For example...

    Memcached Data Transferred: 12,832,080.23 MB
    Free Memory On Server: 10,337.12 MB
    MySQL Traffic: 38,291,497.03 MB

    Would be a lot nicer if they were instead:

    Memcached Data Transferred: 12.23 TB
    Free Memory On Server: 10.09 GB
    MySQL Traffic: 36.51 TB

    It wouldn't hurt to toss PB in there just for good measure. :)
    Robbo likes this.
  2. p4guru

    p4guru Well-Known Member

    PB hehe.. for a moment there i thought that read you allocated 12.23TB of memory to memcached servers :eek:
  3. Mike

    Mike XenForo Developer Staff Member

    1.2 goes up to TB now, BTW.
    JulianD, Jeremy and digitalpoint like this.

Share This Page