mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Assuming that the intent (from the white space) is that the fprintf()
be executed in the if() conditional. If its not supposed to be printed inside the conditional, then the braces should be removed and the extra tabs on the fprintf() should be removed. Noted by cross compilation with gcc-mips.
This commit is contained in:
parent
5cc9fabecf
commit
2d0730b243
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335608
@ -497,12 +497,13 @@ cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa)
|
||||
* this causes integer overflow in kernel!
|
||||
* (bandwidth < 6Kbps when max_pkt_size=1500)
|
||||
*/
|
||||
if (pa->bandwidth != 0 && (pf->opts & PF_OPT_QUIET) == 0)
|
||||
if (pa->bandwidth != 0 && (pf->opts & PF_OPT_QUIET) == 0) {
|
||||
warnx("queue bandwidth must be larger than %s",
|
||||
rate2str(ifnsPerByte * (double)opts->maxpktsize /
|
||||
(double)INT_MAX * (double)pa->ifbandwidth));
|
||||
fprintf(stderr, "cbq: queue %s is too slow!\n",
|
||||
pa->qname);
|
||||
}
|
||||
nsPerByte = (double)(INT_MAX / opts->maxpktsize);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user