From 57148c05d580470ab1de38f02f2a0782c0b5fda1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 19 Feb 2020 16:54:45 -0700 Subject: [PATCH] Update switch.php --- resources/switch.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index ccad23fd62..f8855d8172 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -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);