Permalink
Browse files

3WiFi Daemon: Add limit for error report generation

  • Loading branch information...
binarymaster committed May 1, 2018
1 parent 30619b1 commit 5ed036c491670361c2fbde1bb2645642d5d435b8
Showing with 5 additions and 2 deletions.
  1. +5 −2 3wifid.php
View
@@ -101,8 +101,11 @@
}
logt("Status: $cntp processed, $cnta added (Done!)");
$warns = array();
foreach ($warn as $line => $wid)
$warns[] = implode('|', array($line, $wid));
if (count($warn) < 200000) // sanity check
{
foreach ($warn as $line => $wid)
$warns[] = implode('|', array($line, $wid));
}
$warns = implode(',', $warns);
logt('Removing temporary file...');

0 comments on commit 5ed036c

Please sign in to comment.