mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(mvc) add getLastRestart to backend class
This commit is contained in:
parent
0e0481d501
commit
5cd4a1cbbf
@ -94,4 +94,18 @@ class Backend
|
||||
|
||||
return str_replace($endOfStream, "", $resp);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return int last restart timestamp
|
||||
*/
|
||||
public function getLastRestart()
|
||||
{
|
||||
if (file_exists($this->configdSocket)) {
|
||||
return filemtime($this->configdSocket);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user