minor gui fixes

This commit is contained in:
SJ 2015-05-12 14:34:38 +02:00
parent 533e486973
commit c77608dbea
3 changed files with 6 additions and 5 deletions

View File

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

View File

@ -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'];

View File

@ -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]);