inverse logique for toosmall and toobig

master
Heuzef 5 years ago
parent 7004a8f188
commit eef81b45df
  1. 18
      backuppc_check.pl

@ -149,25 +149,25 @@ print("Errors : $json->{errors}");
print("\n");
print("Size Consistency : ");
# TOO SMALL ?
my $toosmall = "true";
# TOO BIG ?
my $toobig = "true";
if ( $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} > $json->{new_size_avg} * 6 ) {
$toosmall = "false";
$toobig = "false";
}
else {
$toosmall = "true";
$toobig = "true";
}
# TOO BIG ?
my $toobig = "true";
# TOO SMALL ?
my $toosmall = "true";
if ( $json->{new_size} < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} < $json->{new_size_avg} / 3 ) {
$toobig = "false";
$toosmall = "false";
}
else {
$toobig = "true";
$toosmall = "true";
}
# Print result
if ( $toosmall == "false" && $toobig == "false" ) {
if ( $toobig == "false" && $toosmall == "false" ) {
print("Normal");
}
else {

Loading…
Cancel
Save