From b53cd1932042dd04deacaa2743099620a67b5aa1 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 14:34:48 +0200 Subject: [PATCH] use direct comparaison --- backuppc_check.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index 1c73340..acf3e21 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -112,11 +112,11 @@ print("\ntoobig : $toobig\n"); print("\ntoosmall : $toosmall\n"); # Print result -if ( $toobig == "0" && $toosmall == "0" ) { - print("Normal"); +if ( $toobig or $toosmall ) { + print("ANOMALOUS"); } else { - print("ANOMALOUS"); + print("Normal"); } print("\n"); print("Random file : ..........");