Description

This function retrieves a graphical bar that indicates bandwidth usage for the account's domains.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$get_bwbar = $cpanel->api1('Stats','bwbar'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $get_bwbar = $cpliveapi->api1('Stats','bwbar'); # Call the function.

 

<cpanel Module="Stats::bwbar()">
cpapi1 --user=username Stats bwbar

<table><tr><td
 class="barborder"><img src=bar.gif height=8 
width=${barlength}><img src=wbar.gif height=8 
width=${wbarlength}></td><td>${percent}% 
used</td></tr></table>

Parameters

This function does not accept parameters.

Returns

This function displays a bar in HTML that represents the amount of bandwidth that the account's domains use.