mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
dont send to much when scanning large folders
This commit is contained in:
parent
9d2f8aa717
commit
ebc7a6a0a6
1 changed files with 3 additions and 4 deletions
|
|
@ -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…
Reference in a new issue