mirror of
https://github.com/ShaYmez/allmon2-last-heard.git
synced 2024-11-27 02:09:19 -05:00
Change truncate size
This commit is contained in:
parent
23c9f871bc
commit
e4c7683406
@ -139,9 +139,10 @@ class Stream
|
||||
$this->keyed[$node] = $keyedNow ?: null;
|
||||
|
||||
if ($keyedBefore !== $keyedNow) {
|
||||
if (filesize($this->streamOutput) >= 4096) {
|
||||
if (filesize($this->streamOutput) >= 8192) {
|
||||
echo filesize($this->streamOutput) . "\n";
|
||||
$so = file_get_contents($this->streamOutput);
|
||||
$so = substr($so, 2048);
|
||||
$so = substr($so, 4096);
|
||||
file_put_contents($this->streamOutput, $so);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user