=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/vmstat.c,v retrieving revision 1.68 retrieving revision 1.69 diff -c -r1.68 -r1.69 *** src/usr.bin/systat/vmstat.c 2009/03/30 05:35:22 1.68 --- src/usr.bin/systat/vmstat.c 2009/05/03 05:01:54 1.69 *************** *** 1,4 **** ! /* $OpenBSD: vmstat.c,v 1.68 2009/03/30 05:35:22 deraadt Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: vmstat.c,v 1.69 2009/05/03 05:01:54 drahn Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- *************** *** 34,40 **** #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif ! static char rcsid[] = "$OpenBSD: vmstat.c,v 1.68 2009/03/30 05:35:22 deraadt Exp $"; #endif /* not lint */ /* --- 34,40 ---- #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif ! static char rcsid[] = "$OpenBSD: vmstat.c,v 1.69 2009/05/03 05:01:54 drahn Exp $"; #endif /* not lint */ /* *************** *** 536,544 **** addch(' '); return; } ! if (n > 1024 * 1024) snprintf(b, sizeof b, "%*dG", w - 1, n / 1024 / 1024); ! else if (n > 1024) snprintf(b, sizeof b, "%*dM", w - 1, n / 1024); else snprintf(b, sizeof b, "%*dK", w - 1, n); --- 536,544 ---- addch(' '); return; } ! if (n > 9999 * 1024) snprintf(b, sizeof b, "%*dG", w - 1, n / 1024 / 1024); ! else if (n > 9999) snprintf(b, sizeof b, "%*dM", w - 1, n / 1024); else snprintf(b, sizeof b, "%*dK", w - 1, n);