use direct comparaison

master
Heuzef 5 years ago
parent c39e383a2c
commit b53cd19320
  1. 6
      backuppc_check.pl

@ -112,11 +112,11 @@ print("\ntoobig : $toobig\n");
print("\ntoosmall : $toosmall\n"); print("\ntoosmall : $toosmall\n");
# Print result # Print result
if ( $toobig == "0" && $toosmall == "0" ) { if ( $toobig or $toosmall ) {
print("Normal"); print("ANOMALOUS");
} }
else { else {
print("ANOMALOUS"); print("Normal");
} }
print("\n"); print("\n");
print("Random file : .........."); print("Random file : ..........");

Loading…
Cancel
Save