From: sthen Date: Fri, 9 May 2014 21:03:43 +0000 (+0000) Subject: print interface name with queues in "systat q"; ok henning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0b4f1cf41ed252b5c526ca71c54f978e4464c66d;p=openbsd print interface name with queues in "systat q"; ok henning --- diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c index 47055800d83..de6771e1973 100644 --- a/usr.bin/systat/pftop.c +++ b/usr.bin/systat/pftop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftop.c,v 1.27 2014/05/03 11:11:15 chl Exp $ */ +/* $OpenBSD: pftop.c,v 1.28 2014/05/09 21:03:43 sthen Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -1633,6 +1633,8 @@ print_queue_node(struct pfctl_queue_node *node) for (i = 0; i < node->depth; i++) tbprintf(" "); tbprintf("%s", node->qs.qname); + if (i == 0 && node->qs.ifname[0]) + tbprintf(" on %s ", node->qs.ifname); print_fld_tb(FLD_QUEUE); // XXX: missing min, max, burst