/**
  * Display a human readable string for a bytesize (1MB, 2,3Go, etc)
  * @static
  * @param $filesize
  * @param bool $phpConfig
  * @return string
  */
 public static function roundSize($filesize, $phpConfig = false)
 {
     if (self::$sizeUnit == null) {
         $mess = ConfService::getMessages();
         self::$sizeUnit = $mess["byte_unit_symbol"];
     }
     if ($filesize < 0) {
         $filesize = sprintf("%u", $filesize);
     }
     if ($filesize >= 1073741824) {
         $filesize = round($filesize / 1073741824 * 100) / 100 . ($phpConfig ? "G" : " G" . self::$sizeUnit);
     } elseif ($filesize >= 1048576) {
         $filesize = round($filesize / 1048576 * 100) / 100 . ($phpConfig ? "M" : " M" . self::$sizeUnit);
     } elseif ($filesize >= 1024) {
         $filesize = round($filesize / 1024 * 100) / 100 . ($phpConfig ? "K" : " K" . self::$sizeUnit);
     } else {
         $filesize = $filesize . " " . self::$sizeUnit;
     }
     if ($filesize == 0) {
         $filesize = "-";
     }
     return $filesize;
 }