mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Show N/A for impossible SMART parity configurations
This commit is contained in:
parent
57e15416ae
commit
316a9cf135
1 changed files with 17 additions and 6 deletions
|
|
@ -828,12 +828,23 @@ static void state_smart(struct snapraid_state* state, size_t n, tommy_list* low)
|
|||
printf(" -----------------------------------------------------------------------\n");
|
||||
for (j = 0; j < RAID_PARITY_MAX; ++j) {
|
||||
printf("%6u", j + 1);
|
||||
|
||||
if (j + 1 >= n) {
|
||||
printf(" ");
|
||||
printl("N/A", 19);
|
||||
printf(" ");
|
||||
printl("N/A", 17);
|
||||
printf(" ");
|
||||
printl("N/A", 13);
|
||||
} else {
|
||||
printf(" ");
|
||||
printp(raid_prob_of_one_or_more_failures(array_failure_rate, 365.0 / 7, n, j + 1) * 100, 19);
|
||||
printf(" ");
|
||||
printp(raid_prob_of_one_or_more_failures(array_failure_rate, 365.0 / 30, n, j + 1) * 100, 17);
|
||||
printf(" ");
|
||||
printp(raid_prob_of_one_or_more_failures(array_failure_rate, 365.0 / 90, n, j + 1) * 100, 13);
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue