View Single Post
  #9  
Old 27th May 2013, 18:24
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 256
Thanks: 8
Thanked 68 Times in 59 Posts
Default

I use

Code:
function formatBytes($size, $precision = 2) {
        $base=log($size)/log(1024);
        $suffixes=array('','k','M','G','T');
        return round(pow(1024,$base-floor($base)),$precision).$suffixes[floor($base)];
}
in cron_daily.php to add the Backup-Size of each file to the Database. The patch is avalable in the svn-trunk.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote