Browse Source

dont send to much when scanning large folders

remotes/origin/stable4
Robin Appelman 15 years ago
parent
commit
ebc7a6a0a6
  1. 7
      lib/filecache.php

7
lib/filecache.php

@ -490,10 +490,9 @@ class OC_FileCache{
}else{
$totalSize+=self::scanFile($file,$root);
$count++;
if($count>$lastSend+25){
if($eventSource){
$eventSource->send('scanning',array('file'=>$path,'count'=>$count));
}
if($count>$lastSend+25 and $eventSource){
$lastSend=$count;
$eventSource->send('scanning',array('file'=>$path,'count'=>$count));
}
}
}

Loading…
Cancel
Save