mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
"add G to egw_vfs::hsize()"
This commit is contained in:
parent
892db7c0f2
commit
75a604fad6
@ -1037,7 +1037,7 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
}
|
||||
|
||||
/**
|
||||
* Human readable size values in k or M
|
||||
* Human readable size values in k, M or G
|
||||
*
|
||||
* @param int $size
|
||||
* @return string
|
||||
@ -1046,7 +1046,8 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
{
|
||||
if ($size < 1024) return $size;
|
||||
if ($size < 1024*1024) return sprintf('%3.1lfk',(float)$size/1024);
|
||||
return sprintf('%3.1lfM',(float)$size/(1024*1024));
|
||||
if ($size < 1024*1024*1024) return sprintf('%3.1lfM',(float)$size/(1024*1024));
|
||||
return sprintf('%3.1lfG',(float)$size/(1024*1024*1024));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user