mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 04:10:12 +01:00
Removed testing echo statement left in error.
This commit is contained in:
parent
9d9d7e91e7
commit
f8daf707b6
@ -48,7 +48,6 @@ class ControllerHealthWorker extends Controller {
|
|||||||
list($this->data['totalmem'], $this->data['meminfo'], $this->data['totalswap'], $this->data['swapinfo']) = $this->model_health_health->meminfo();
|
list($this->data['totalmem'], $this->data['meminfo'], $this->data['totalswap'], $this->data['swapinfo']) = $this->model_health_health->meminfo();
|
||||||
$this->data['shortdiskinfo'] = $this->model_health_health->diskinfo();
|
$this->data['shortdiskinfo'] = $this->model_health_health->diskinfo();
|
||||||
|
|
||||||
|
|
||||||
if(ENABLE_LDAP_IMPORT_FEATURE == 1) {
|
if(ENABLE_LDAP_IMPORT_FEATURE == 1) {
|
||||||
$this->data['adsyncinfo'] = @file_get_contents(AD_SYNC_STAT);
|
$this->data['adsyncinfo'] = @file_get_contents(AD_SYNC_STAT);
|
||||||
|
|
||||||
@ -65,14 +64,11 @@ class ControllerHealthWorker extends Controller {
|
|||||||
$db = Registry::get('db');
|
$db = Registry::get('db');
|
||||||
$db->select_db($db->database);
|
$db->select_db($db->database);
|
||||||
|
|
||||||
|
|
||||||
list($archivesizeraw, $this->data['counters']) = $this->model_stat_counter->get_counters();
|
list($archivesizeraw, $this->data['counters']) = $this->model_stat_counter->get_counters();
|
||||||
|
|
||||||
$oldest_record_timestamp = $this->model_health_health->get_oldest_record_ts();
|
$oldest_record_timestamp = $this->model_health_health->get_oldest_record_ts();
|
||||||
$total_number_days = round( (time() - $oldest_record_timestamp) / 86400 );
|
$total_number_days = round( (time() - $oldest_record_timestamp) / 86400 );
|
||||||
|
|
||||||
echo("Total Days: ".date("d M Y",time())." - ".date("d M Y",$oldest_record_timestamp)." = $total_number_days<br/>");
|
|
||||||
|
|
||||||
$this->data['archive_size'] = nice_size($archivesizeraw, ' ');
|
$this->data['archive_size'] = nice_size($archivesizeraw, ' ');
|
||||||
|
|
||||||
$this->data['prefix'] = '';
|
$this->data['prefix'] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user