CC-2651: import idicator
- Threshold is 10 seconds - record timestamp once every 5 seconds - "File import inprogress..." displays above search box - pyinotify read_freq changed to 0.1 from 1
This commit is contained in:
parent
05b2a9679b
commit
968c0f96a2
6 changed files with 10 additions and 8 deletions
|
@ -359,7 +359,9 @@ class Application_Model_Preference
|
|||
|
||||
public static function SetImportTimestamp(){
|
||||
$now = time();
|
||||
Application_Model_Preference::SetValue("import_timestamp", $now);
|
||||
if(Application_Model_Preference::GetImportTimestamp()+5 < $now){
|
||||
Application_Model_Preference::SetValue("import_timestamp", $now);
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetImportTimestamp(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue