=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/engine.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/systat/engine.c 2011/04/05 07:35:32 1.14 +++ src/usr.bin/systat/engine.c 2013/09/07 11:43:49 1.15 @@ -1,4 +1,4 @@ -/* $Id: engine.c,v 1.14 2011/04/05 07:35:32 mpf Exp $ */ +/* $Id: engine.c,v 1.15 2013/09/07 11:43:49 reyk Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * @@ -55,6 +55,7 @@ useconds_t udelay = 5000000; int dispstart = 0; int interactive = 1; +int averageonly = 0; int maxprint = 0; int paused = 0; int rawmode = 0; @@ -1351,7 +1352,9 @@ if (need_update) { erase(); - disp_update(); + if (!averageonly || + (averageonly && count == countmax - 1)) + disp_update(); end_page(); need_update = 0; if (countmax && ++count >= countmax)