mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update switch.php
This commit is contained in:
@@ -88,17 +88,6 @@ function event_socket_request_cmd($cmd) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
function byte_convert($bytes, $precision = 2) {
|
||||
static $units = array('B','KB','MB','GB','TB','PB','EB','ZB','YB');
|
||||
$step = 1024;
|
||||
$i = 0;
|
||||
while (($bytes / $step) > 0.9) {
|
||||
$bytes = $bytes / $step;
|
||||
$i++;
|
||||
}
|
||||
return round($bytes, $precision).' '.$units[$i];
|
||||
}
|
||||
|
||||
function remove_config_from_cache($name) {
|
||||
$cache = new cache;
|
||||
$cache->delete($name);
|
||||
|
||||
Reference in New Issue
Block a user