diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 54c19f3da6a4..ba41b258d870 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -381,8 +381,10 @@ labelkre() #define Z(fld) {t = s.nchstats.fld; s.nchstats.fld -= s1.nchstats.fld; \ if(state == TIME) s1.nchstats.fld = t;} #define PUTRATE(fld, l, c, w) \ +do { \ Y(fld); \ - putint((int)((float)s.fld/etime + 0.5), l, c, w) + putint((int)((float)s.fld/etime + 0.5), l, c, w); \ +} while (0) #define MAXFAIL 5 static char cpuchar[CPUSTATES] = { '=' , '+', '>', '-', ' ' };