bufmem is unsigned.

This commit is contained in:
christos 2012-11-23 15:35:57 +00:00
parent 463d2a0e8f
commit 5c26317391
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette Exp $ */
/* $NetBSD: bufcache.c,v 1.25 2012/11/23 15:35:57 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette Exp $");
__RCSID("$NetBSD: bufcache.c,v 1.25 2012/11/23 15:35:57 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -134,7 +134,7 @@ showbufcache(void)
error("can't get \"vm.bufmmem\": %s", strerror(errno));
mvwprintw(wnd, 0, 0,
" %*d metadata buffers using %*"PRId64" kBytes of "
" %*d metadata buffers using %*"PRIu64" kBytes of "
"memory (%2.0f%%).",
pgwidth, nbuf, kbwidth, bufmem / 1024,
((bufmem * 100.0) + 0.5) / getpagesize() / uvmexp.npages);