(mvc) add getLastRestart to backend class

This commit is contained in:
Ad Schellevis 2015-06-04 20:22:23 +02:00
parent 0e0481d501
commit 5cd4a1cbbf

View File

@ -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;
}
}
}