Skip to content

Commit

Permalink
>=1
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-who committed Aug 13, 2024
1 parent 9ffdf1d commit c26aa13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/stripesim.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,14 @@ int simulate(int *drivesok, int groups, int drives, int k, int m, int T, int s,
histhist[striphist[i]]++;
if (striphist[i] < k+m) {
if (showhist >= 2) printf("strip %d = %d %s\n", i, striphist[i], striphist[i] < k ? "ERROR":"");
if (striphist[i] < k)
exit(1);
// if (striphist[i] < k)
// exit(1);
//
}
}
}
printf("\n");
for (int i = 1; i <= k+m; i++) {
for (int i = 0; i <= k+m; i++) {
printf("drives %d = %d\n", i, histhist[i]);
}
free(histhist);
Expand Down

0 comments on commit c26aa13

Please sign in to comment.