xxxx/xx/xx: Version 10.0.2 - Sebastien Godard (sysstat <at> orange.fr)
* [Jeroen Roovers]: Automate translation files handling in
Makefile.in.
+ * Various cosmetic changes (sar.c, sadf.c).
* CREDITS file updated.
2011/06/03: Version 10.0.1 - Sebastien Godard (sysstat <at> orange.fr)
#define IS_COLLECTED(m) (((m) & AO_COLLECTED) == AO_COLLECTED)
#define IS_SELECTED(m) (((m) & AO_SELECTED) == AO_SELECTED)
#define IS_REMANENT(m) (((m) & AO_REMANENT) == AO_REMANENT)
-#define NEEDS_GLOBAL_ITV(m) (((m) & AO_GLOBAL_ITV) == AO_GLOBAL_ITV)
+#define NEED_GLOBAL_ITV(m) (((m) & AO_GLOBAL_ITV) == AO_GLOBAL_ITV)
#define CLOSE_MARKUP(m) (((m) & AO_CLOSE_MARKUP) == AO_CLOSE_MARKUP)
#define HAS_MULTIPLE_OUTPUTS(m) (((m) & AO_MULTIPLE_OUTPUTS) == AO_MULTIPLE_OUTPUTS)
continue;
if (IS_SELECTED(act[i]->options) && (act[i]->nr > 0)) {
-
- if (NEEDS_GLOBAL_ITV(act[i]->options)) {
- (*act[i]->f_render)(act[i], isdb, pre, curr, g_itv);
- }
- else {
- (*act[i]->f_render)(act[i], isdb, pre, curr, itv);
- }
+ (*act[i]->f_render)(act[i], isdb, pre, curr,
+ NEED_GLOBAL_ITV(act[i]->options) ? g_itv : itv);
}
}
if (CLOSE_MARKUP(act[i]->options) ||
(IS_SELECTED(act[i]->options) && (act[i]->nr > 0))) {
-
- if (NEEDS_GLOBAL_ITV(act[i]->options)) {
- (*act[i]->f_xml_print)(act[i], curr, tab, g_itv);
- }
- else {
- (*act[i]->f_xml_print)(act[i], curr, tab, itv);
- }
+ (*act[i]->f_xml_print)(act[i], curr, tab,
+ NEED_GLOBAL_ITV(act[i]->options) ? g_itv : itv);
}
}
if (IS_SELECTED(act[i]->options) && (act[i]->nr > 0)) {
/* Display current average activity statistics */
- if (NEEDS_GLOBAL_ITV(act[i]->options))
- (*act[i]->f_print_avg)(act[i], 2, curr, g_itv);
- else
- (*act[i]->f_print_avg)(act[i], 2, curr, itv);
+ (*act[i]->f_print_avg)(act[i], 2, curr,
+ NEED_GLOBAL_ITV(act[i]->options) ? g_itv : itv);
}
}
if (IS_SELECTED(act[i]->options) && (act[i]->nr > 0)) {
/* Display current activity statistics */
- if (NEEDS_GLOBAL_ITV(act[i]->options))
- (*act[i]->f_print)(act[i], !curr, curr, g_itv);
- else
- (*act[i]->f_print)(act[i], !curr, curr, itv);
+ (*act[i]->f_print)(act[i], !curr, curr,
+ NEED_GLOBAL_ITV(act[i]->options) ? g_itv : itv);
}
}