diff --git a/top/top.c b/top/top.c index d29d8f4d..79c9e7f7 100644 --- a/top/top.c +++ b/top/top.c @@ -2092,8 +2092,6 @@ static void zap_fieldstab (void) { once = 1; } - /*** hotplug_acclimated ***/ - Fieldstab[EU_CPN].width = 1; if (1 < (digits = (unsigned)snprintf(buf, sizeof(buf), "%u", (unsigned)Cpu_cnt))) { if (5 < digits) error_exit(N_txt(FAIL_widecpu_txt)); @@ -2227,22 +2225,20 @@ static void procs_refresh (void) { /* - * This serves as our interface to the memory & cpu count (sysinfo) - * portion of libproc. In support of those hotpluggable resources, - * the sampling frequencies are reduced so as to minimize overhead. */ + * This serves as our interface to the memory portion of libprocps. + * The sampling frequency is reduced in order to minimize overhead. */ static void sysinfo_refresh (int forced) { - static time_t mem_secs, cpu_secs; + static time_t sav_secs; time_t cur_secs; if (forced) - mem_secs = cpu_secs = 0; + sav_secs = 0; cur_secs = time(NULL); - /*** hotplug_acclimated ***/ - if (3 <= cur_secs - mem_secs) { + if (3 <= cur_secs - sav_secs) { if (!(Mem_stack = procps_meminfo_select(Mem_ctx, Mem_items, MAXTBL(Mem_items)))) error_exit(fmtmk(N_fmt(LIB_errormem_fmt),__LINE__)); - mem_secs = cur_secs; + sav_secs = cur_secs; } } // end: sysinfo_refresh diff --git a/top/top.h b/top/top.h index 5ad6f665..8674d121 100644 --- a/top/top.h +++ b/top/top.h @@ -59,11 +59,6 @@ /*###### Notes, etc. ###################################################*/ - /* The following convention is used to identify those areas where - adaptations for hotplugging are to be found ... - *** hotplug_acclimated *** - ( hopefully libproc will also be supportive of our efforts ) */ - /* For introducing inaugural cgroup support, thanks to: Jan Gorig - April, 2011 */