CC-3131: Latency of stream authentication warning in Stream Settings page
- it compares boot time of liquidsoap and the time user clicks on "Save" on stream setting page. The status only gets updated if the "boot_time" > "user update time" - as soon as a user click on save, status is set to "wating" - since there is no timing issue, quering interval is reduced to 1 sec
This commit is contained in:
parent
85b8209db9
commit
9c65bfeba7
10 changed files with 71 additions and 29 deletions
|
@ -573,6 +573,25 @@ class Application_Model_Preference
|
|||
return $val;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores the last timestamp of user updating stream setting
|
||||
*/
|
||||
public static function SetStreamUpdateTimestamp() {
|
||||
$now = time();
|
||||
self::SetValue("stream_update_timestamp", $now);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the last timestamp of user updating stream setting
|
||||
*/
|
||||
public static function GetStreamUpdateTimestemp() {
|
||||
$update_time = self::GetValue("stream_update_timestamp");
|
||||
if($update_time == null){
|
||||
$update_time = 0;
|
||||
}
|
||||
return $update_time;
|
||||
}
|
||||
|
||||
/* User specific preferences start */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue