Use MIN macro from sys/param.h.
MFC after: 2 weeks
This commit is contained in:
parent
1120faab41
commit
2c953857dd
@ -353,8 +353,7 @@ dumpcg(void)
|
|||||||
for (i = 1; i < afs.fs_contigsumsize; i++) {
|
for (i = 1; i < afs.fs_contigsumsize; i++) {
|
||||||
if ((i - 1) % 8 == 0)
|
if ((i - 1) % 8 == 0)
|
||||||
printf("\nclusters %d-%d:", i,
|
printf("\nclusters %d-%d:", i,
|
||||||
afs.fs_contigsumsize - 1 < i + 7 ?
|
MIN(afs.fs_contigsumsize - 1, i + 7));
|
||||||
afs.fs_contigsumsize - 1 : i + 7);
|
|
||||||
printf("\t%d", cg_clustersum(&acg)[i]);
|
printf("\t%d", cg_clustersum(&acg)[i]);
|
||||||
}
|
}
|
||||||
printf("\nclusters size %d and over: %d\n",
|
printf("\nclusters size %d and over: %d\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user