mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:50:12 +01:00
util fixes
This commit is contained in:
parent
ae53276622
commit
b4805171a2
@ -5,6 +5,8 @@ $verbose = 0;
|
|||||||
|
|
||||||
$archivesizeraw = $sqlsizeraw = $sphinxsizeraw = 0;
|
$archivesizeraw = $sqlsizeraw = $sphinxsizeraw = 0;
|
||||||
$averagemessagesweekraw = $averagemessagesmonthraw = $averagemessagesizeraw = $averagesizedayraw = $averagesqlsizeraw = $averagesphinxsizeraw = 0;
|
$averagemessagesweekraw = $averagemessagesmonthraw = $averagemessagesizeraw = $averagesizedayraw = $averagesqlsizeraw = $averagesphinxsizeraw = 0;
|
||||||
|
|
||||||
|
ini_set("session.save_path", "/tmp");
|
||||||
|
|
||||||
$_SERVER['HTTP_USER_AGENT'] = "daily/cron";
|
$_SERVER['HTTP_USER_AGENT'] = "daily/cron";
|
||||||
|
|
||||||
@ -122,8 +124,8 @@ $mail = new ModelMailMail();
|
|||||||
$averagemessagesizeraw = $averagesqlsizeraw = $averagesphinxsizeraw = $daysleftatcurrentrate = 0;
|
$averagemessagesizeraw = $averagesqlsizeraw = $averagesphinxsizeraw = $daysleftatcurrentrate = 0;
|
||||||
|
|
||||||
/* these next counters are for projecting space */
|
/* these next counters are for projecting space */
|
||||||
$averagemessagesweekraw = ($processed_emails[1]) / 7;
|
$averagemessagesweekraw = ($processed_emails['last_7_days_size']) / 7;
|
||||||
$averagemessagesmonthraw = ($processed_emails[2]) / 30;
|
$averagemessagesmonthraw = ($processed_emails['last_30_days_size']) / 30;
|
||||||
|
|
||||||
if($counters['rcvd'] > 0) {
|
if($counters['rcvd'] > 0) {
|
||||||
$averagemessagesizeraw = $archivesizeraw / $counters['rcvd'];
|
$averagemessagesizeraw = $archivesizeraw / $counters['rcvd'];
|
||||||
@ -175,8 +177,9 @@ $mail = new ModelMailMail();
|
|||||||
|
|
||||||
$rcpt = array(ADMIN_EMAIL);
|
$rcpt = array(ADMIN_EMAIL);
|
||||||
|
|
||||||
$x = $mail->send_smtp_email(SMARTHOST, SMARTHOST_PORT, SMTP_DOMAIN, SMTP_FROMADDR, $rcpt, $msg);
|
if(SMARTHOST) {
|
||||||
|
$x = $mail->send_smtp_email(SMARTHOST, SMARTHOST_PORT, SMTP_DOMAIN, SMTP_FROMADDR, $rcpt, $msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($fp) {
|
if($fp) {
|
||||||
|
@ -6,6 +6,8 @@ $start = NULL;
|
|||||||
$stop = NULL;
|
$stop = NULL;
|
||||||
$timestart = microtime(true);
|
$timestart = microtime(true);
|
||||||
|
|
||||||
|
ini_set("session.save_path", "/tmp");
|
||||||
|
|
||||||
// get options from command line
|
// get options from command line
|
||||||
$opts = 'h::';
|
$opts = 'h::';
|
||||||
$lopts = array(
|
$lopts = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user