mirror of https://github.com/aredn/aredn.git
bugfix: rssi_monitor log file size trim calculation error
This commit is contained in:
commit
d0ff01bdbf
|
@ -293,7 +293,7 @@ undef $/;
|
||||||
$^I = "";
|
$^I = "";
|
||||||
while (<>)
|
while (<>)
|
||||||
{
|
{
|
||||||
substr($_, 0, $MAXSIZE - length) = "";
|
substr($_, 0, length() - $MAXSIZE) = "";
|
||||||
s/.*\n//;
|
s/.*\n//;
|
||||||
print;
|
print;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue