diff options
Diffstat (limited to 'src/vmstat.c')
-rw-r--r-- | src/vmstat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vmstat.c b/src/vmstat.c index 8610983..d076cf2 100644 --- a/src/vmstat.c +++ b/src/vmstat.c @@ -468,6 +468,9 @@ static void new_format(void) pswpin[tog] = VMSTAT_GET(vm_info, VMSTAT_PSWPIN, ul_int); pswpout[tog] = VMSTAT_GET(vm_info, VMSTAT_PSWPOUT, ul_int); + if (!(mem_stack = procps_meminfo_select(mem_info, Mem_items, MAX_mem))) + xerrx(EXIT_FAILURE, _("Unable to select memory information")); + if (t_option) { (void) time( &the_time ); tm_ptr = localtime( &the_time ); |