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 : ..........");