mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2967 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -3,16 +3,17 @@
|
||||
function format_bytes_billing($value)
|
||||
{
|
||||
global $config;
|
||||
|
||||
return format_number($value, $config['billing']['base'])."B";
|
||||
}
|
||||
|
||||
function format_bytes_billing_short($value)
|
||||
{
|
||||
global $config;
|
||||
|
||||
return format_number($value, $config['billing']['base'], 2, 3);
|
||||
}
|
||||
|
||||
|
||||
function getDates($dayofmonth, $months=0)
|
||||
{
|
||||
$dayofmonth = zeropad($dayofmonth);
|
||||
@@ -30,13 +31,12 @@ function getDates($dayofmonth, $months=0)
|
||||
date_sub($date_start, date_interval_create_from_date_string('1 month'));
|
||||
}
|
||||
|
||||
if($months > 0)
|
||||
if ($months > 0)
|
||||
{
|
||||
date_sub($date_start, date_interval_create_from_date_string($months.' month'));
|
||||
date_sub($date_end, date_interval_create_from_date_string($months.' month'));
|
||||
}
|
||||
|
||||
|
||||
# date_sub($date_start, date_interval_create_from_date_string('1 month'));
|
||||
date_sub($date_end, date_interval_create_from_date_string('1 day'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user