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));
/*
- * 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
\f
/*###### 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 <jgorig@redhat.com> - April, 2011 */