summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/inetd/inetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 213683c..cab156f 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -2338,7 +2338,7 @@ cpmip(const struct servtab *sep, int ctrl)
cnt += ct->ct_Count;
}
}
- if (cnt * (CHTSIZE * CHTGRAN) / 60 > sep->se_maxcpm) {
+ if ((cnt * 60) / (CHTSIZE * CHTGRAN) > sep->se_maxcpm) {
char pname[INET6_ADDRSTRLEN];
getnameinfo((struct sockaddr *)&rss,
OpenPOWER on IntegriCloud