mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:10:13 +01:00
minor gui fixes
This commit is contained in:
parent
533e486973
commit
c77608dbea
@ -36,6 +36,7 @@ install:
|
||||
$(INSTALL) -m 0755 $(srcdir)/sign.php $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/indexer.delta.sh $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/indexer.main.sh $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/indexer.attachment.sh $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/import.sh $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/purge.sh $(DESTDIR)$(libexecdir)/piler
|
||||
$(INSTALL) -m 0755 $(srcdir)/postinstall.sh $(DESTDIR)$(libexecdir)/piler
|
||||
|
@ -107,8 +107,8 @@ $mail = new ModelMailMail();
|
||||
|
||||
list ($uptime, $cpuload) = $health->uptime();
|
||||
|
||||
$cpuinfo = 100 - (int)file_get_contents(CPUSTAT);
|
||||
|
||||
$x = exec(CPU_USAGE_COMMAND);
|
||||
$cpuinfo = 100 - (int)$x;
|
||||
|
||||
list($totalmem, $meminfo, $totalswap, $swapinfo) = $health->meminfo();
|
||||
$shortdiskinfo = $health->diskinfo();
|
||||
@ -124,8 +124,8 @@ $mail = new ModelMailMail();
|
||||
$averagemessagesizeraw = $averagesqlsizeraw = $averagesphinxsizeraw = $daysleftatcurrentrate = 0;
|
||||
|
||||
/* these next counters are for projecting space */
|
||||
$averagemessagesweekraw = ($processed_emails['last_7_days_size']) / 7;
|
||||
$averagemessagesmonthraw = ($processed_emails['last_30_days_size']) / 30;
|
||||
$averagemessagesweekraw = 0;
|
||||
$averagemessagesmonthraw = 0;
|
||||
|
||||
if($counters['rcvd'] > 0) {
|
||||
$averagemessagesizeraw = $archivesizeraw / $counters['rcvd'];
|
||||
|
@ -16,9 +16,9 @@ class ModelHealthHealth extends Model {
|
||||
|
||||
$ret = $error;
|
||||
$time = 0;
|
||||
$time_start = microtime(true);
|
||||
|
||||
if($smtp[0] && $smtp[1] && is_numeric($smtp[1]) && $smtp[1] > 0 && $smtp[1] < 65536) {
|
||||
$time_start = microtime(true);
|
||||
|
||||
$s = @fsockopen($smtp[0], $smtp[1]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user