diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-25 20:45:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-25 20:45:44 +0000 |
commit | 429f9268a4fee3d872a0b78ec118e0bb0843d87a (patch) | |
tree | 13f451b683e200c1690eb907b65503afd20dbd66 /usr.bin/systat/main.c | |
parent | c9e88c5e7ee535e86b97a3bdab695c6ad74b796e (diff) |
the rule is not to use nitems() in userland yet
Diffstat (limited to 'usr.bin/systat/main.c')
-rw-r--r-- | usr.bin/systat/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 14d93b8334b..b83ac6d8a2b 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.53 2009/06/25 20:39:02 okan Exp $ */ +/* $Id: main.c,v 1.54 2009/06/25 20:45:43 deraadt Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -97,7 +97,7 @@ print_header(void) tb_start(); - getloadavg(avenrun, nitems(avenrun)); + getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); time(&now); strlcpy(tbuf, ctime(&now), sizeof tbuf); |