summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2017-05-15 16:24:44 +0000
committermikeb <mikeb@openbsd.org>2017-05-15 16:24:44 +0000
commitaec39f4b335012aba3e618cf8e28fd003a388c6d (patch)
tree53fec16082f921e1fc9b56c115fcd02009003627
parentProperly register manual pages in non-English language directories. (diff)
downloadwireguard-openbsd-aec39f4b335012aba3e618cf8e28fd003a388c6d.tar.xz
wireguard-openbsd-aec39f4b335012aba3e618cf8e28fd003a388c6d.zip
Put the closing parenthesis in the right spot and fix std-dev calculation
-rw-r--r--sbin/pfctl/pfctl_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_queue.c b/sbin/pfctl/pfctl_queue.c
index 21e8d3e3dbc..feeeba33f8d 100644
--- a/sbin/pfctl/pfctl_queue.c
+++ b/sbin/pfctl/pfctl_queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_queue.c,v 1.4 2017/05/15 11:23:25 mikeb Exp $ */
+/* $OpenBSD: pfctl_queue.c,v 1.5 2017/05/15 16:24:44 mikeb Exp $ */
/*
* Copyright (c) 2003 - 2013 Henning Brauer <henning@openbsd.org>
@@ -219,7 +219,7 @@ pfctl_print_queue_nodestat(int dev, const struct pfctl_queue_node *node)
avg = (double)fqstats->delaysum /
(double)fqstats->flows;
dev = sqrt(fmax(0, (double)fqstats->delaysumsq /
- (double)fqstats->flows) - avg * avg);
+ (double)fqstats->flows - avg * avg));
}
printf(" [ qlength: %3d/%3d avg delay: %.3fms std-dev: %.3fms"