The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel Bandwidth massively exceeds package limit

Discussion in 'General Discussion' started by fdnven, Aug 21, 2007.

  1. fdnven

    fdnven Well-Known Member

    Joined:
    Feb 14, 2006
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Runing:
    WHM 11.2.0 cPanel 11.10.0-R16448
    CENTOS Enterprise 4.5 i686 - WHM X v3.1.0

    Package limits for bandwidth set in WHM are thus:
    60144MB

    Customer hard limit in the cPanel are thus:
    65053655040 MB
    Looks like this-> Bandwidth 8320.31/65053655040 MB

    Any ideas on how i can fix this issue. All the bandwidth numbers are correct in WHM.

    Thanks for your help.

    Frank
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    That's rather odd, especially since assuming that value is in Bytes, and using the calculation cPanel uses to display the limit, that comes to 62040 MB, which doesn't match the package.

    Check the value set in /var/cpanel/users/<user_name> replacing <user_name> with the actual user name. YOu should see an entry like:

    Code:
    BWLIMIT=63065554944
    
    If it matches what is being displayed, then check /usr/local/cpanel/Cpanel/StatsBar.pm for this line of code:

    Code:
    sub _getbwlimit {         
        return sprintf( '%.2f', ( $Cpanel::CPDATA{'BWLIMIT'} / 1024 / 1024 ) );
    } 
    
    If it doesn't match the above, then modify the function to match the above.
     
Loading...

Share This Page