Commit 5cd4a1cb authored by Ad Schellevis's avatar Ad Schellevis

(mvc) add getLastRestart to backend class

parent 0e0481d5
......@@ -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;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment