mirror of
https://github.com/unraid/webgui.git
synced 2026-01-23 09:59:59 -06:00
Nchan optimize unread notifications reporting
This commit is contained in:
@@ -21,7 +21,7 @@ require_once "$docroot/webGui/include/publish.php";
|
||||
while (true) {
|
||||
$get = shell_exec("$notify get");
|
||||
if (!file_exists($unread) || file_get_contents($unread)!=$get) {
|
||||
publish('notify', $get, 0);
|
||||
publish('notify', $get);
|
||||
file_put_contents($unread,$get);
|
||||
}
|
||||
sleep(3);
|
||||
|
||||
Reference in New Issue
Block a user