From: Davide Franco Date: Fri, 24 Jun 2011 13:24:38 +0000 (+0200) Subject: bacula-web: Renamed file utils.class.php to cutils.class.php X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95f1aee230c9248c51defcc8f248c1bece8083d3;p=bacula%2Fbacula bacula-web: Renamed file utils.class.php to cutils.class.php --- diff --git a/gui/bacula-web/includes/utils/cutils.class.php b/gui/bacula-web/includes/utils/cutils.class.php new file mode 100644 index 0000000000..b9eddfb315 --- /dev/null +++ b/gui/bacula-web/includes/utils/cutils.class.php @@ -0,0 +1,50 @@ += 1024 ) { + $hsize = $hsize / 1024; + $unit_id += 1; + } + else + $lisible = true; + } // end while + break; + + default: + $p = array_search( $unit, $units); + $hsize = $hsize / pow(1024,$p); + break; + } // end switch + + $hsize = sprintf("%." . $decimal . "f", $hsize); + $hsize = $hsize . ' ' . $units[$unit_id]; + return $hsize; + } +} + +?> diff --git a/gui/bacula-web/includes/utils/utils.class.php b/gui/bacula-web/includes/utils/utils.class.php deleted file mode 100644 index b9eddfb315..0000000000 --- a/gui/bacula-web/includes/utils/utils.class.php +++ /dev/null @@ -1,50 +0,0 @@ -= 1024 ) { - $hsize = $hsize / 1024; - $unit_id += 1; - } - else - $lisible = true; - } // end while - break; - - default: - $p = array_search( $unit, $units); - $hsize = $hsize / pow(1024,$p); - break; - } // end switch - - $hsize = sprintf("%." . $decimal . "f", $hsize); - $hsize = $hsize . ' ' . $units[$unit_id]; - return $hsize; - } -} - -?>