Skip to content
Permalink
Browse files

Update functions.php

  • Loading branch information...
AndyTaylorTweet committed May 22, 2019
1 parent 8194cd2 commit e8559c78fe2c34f83643627d2be87e42eff05603
Showing with 2 additions and 2 deletions.
  1. +2 −2 mmdvmhost/functions.php
@@ -208,13 +208,13 @@ function getMMDVMLog() {
$logLines2 = array();
if (file_exists(MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".gmdate("Y-m-d").".log")) {
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".gmdate("Y-m-d").".log";
$logLines1 = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath | tail -250`);
$logLines1 = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath | sed '/\(CSBK\|overflow\)/d' | tail -250`);
}
$logLines1 = array_slice($logLines1, -250);
if (sizeof($logLines1) < 250) {
if (file_exists(MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".gmdate("Y-m-d", time() - 86340).".log")) {
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".gmdate("Y-m-d", time() - 86340).".log";
$logLines2 = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath | tail -250`);
$logLines2 = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath | sed '/\(CSBK\|overflow\)/d' | tail -250`);
}
}
$logLines2 = array_slice($logLines2, -250);

0 comments on commit e8559c7

Please sign in to comment.
You can’t perform that action at this time.