mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
health stat fix
This commit is contained in:
@ -181,6 +181,15 @@ class ModelHealthHealth extends Model {
|
||||
}
|
||||
|
||||
|
||||
public function get_first_email_arrival_ts() {
|
||||
$query = $this->db->query("SELECT `arrived` FROM " . TABLE_META . " ORDER BY id ASC LIMIT 1");
|
||||
|
||||
if(isset($query->row)) { return $query->row['arrived']; }
|
||||
|
||||
return time();
|
||||
}
|
||||
|
||||
|
||||
public function get_sphinx_size($directory = DIR_SPHINX) {
|
||||
$dirSize=0;
|
||||
|
||||
|
Reference in New Issue
Block a user