View Single Post
  #9  
Old 27th May 2013, 17:24
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 224
Thanks: 8
Thanked 62 Times in 53 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