summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-10-19 14:29:46 -0700
committerVito Caputo <vcaputo@pengaru.com>2024-10-19 14:29:46 -0700
commit000d9ff04304e1cbea8960cf0a64236aae14ab6b (patch)
tree534fecf3c67875767a5372029519644328b0d7c5 /src
parent2e99df641671941ab43823168a66e41c8d44aa36 (diff)
charts: use named define for default interval
Purely cosmetic, no functional change.
Diffstat (limited to 'src')
-rw-r--r--src/charts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charts.c b/src/charts.c
index 17433b0..fdd0d9f 100644
--- a/src/charts.c
+++ b/src/charts.c
@@ -48,6 +48,7 @@
#define CHART_MAX_COLUMNS 16
#define CHART_DELTA_SECONDS_EPSILON .001f /* adherence errors smaller than this are treated as zero */
#define CHART_NUM_FIXED_HEADER_ROWS 2 /* number of rows @ top before the hierarchy */
+#define CHART_DEFAULT_INTERVAL_SECS .1f /* default to 10Hz */
/* the global charts state, supplied to vwm_chart_create() which keeps a reference for future use. */
typedef struct _vwm_charts_t {
@@ -210,7 +211,7 @@ vwm_charts_t * vwm_charts_create(vcr_backend_t *vbe, unsigned flags)
if (flags & VWM_CHARTS_FLAG_DEFER_MAINTENANCE)
charts->defer_maintenance = 1;
- charts->prev_sampling_interval_secs = charts->sampling_interval_secs = .1f; /* default to 10Hz */
+ charts->prev_sampling_interval_secs = charts->sampling_interval_secs = CHART_DEFAULT_INTERVAL_SECS;
if (!vmon_init(&charts->vmon, VMON_FLAG_2PASS, CHART_VMON_SYS_WANTS, CHART_VMON_PROC_WANTS)) {
VWM_ERROR("unable to initialize libvmon");
© All Rights Reserved