Changeset 2676

Show
Ignore:
Timestamp:
10/15/06 02:42:43 (7 years ago)
Author:
gregmac
Message:

Fix bug causing incorrect download % calculation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r2675 r2676  
    15921592    $data = fread($dp, $download_chunk_size); 
    15931593    $filedata .= $data; 
    1594     $totalread += strlen($filedata); 
     1594    $totalread += strlen($data); 
    15951595    if (function_exists($progress_callback)) { 
    15961596      $progress_callback('downloading', array('module'=>$modulename, 'read'=>$totalread, 'total'=>$headers['content-length']));