From 1cd9ff45f7c3da51e7ba4e592ead7c106294f140 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 9 May 2017 12:24:27 +0200 Subject: [PATCH] fix --- lib/api/source/deploy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api/source/deploy.php b/lib/api/source/deploy.php index 585acb2..cceddd1 100755 --- a/lib/api/source/deploy.php +++ b/lib/api/source/deploy.php @@ -156,7 +156,9 @@ $saved = $saved < 0 ? 0 : $saved; // prevent negative /* (4) Truncate the log file */ - $saved++; // because need to be excluded + if( $saved > 0 ) + $saved++; // because need to be excluded + $truncated = syscall(SOURCE_DIR."/lib/file/truncate mfrc522 {$saved}"); /* (5) Manage error */