From 4cdf588d6978d181aeb20019d7868e0c2cab3bc8 Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Fri, 28 Jun 2024 15:42:48 +0100 Subject: [PATCH] fixed frame size in time series --- src/margo-default-monitoring.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/margo-default-monitoring.c b/src/margo-default-monitoring.c index a9a6bb6..837a95e 100644 --- a/src/margo-default-monitoring.c +++ b/src/margo-default-monitoring.c @@ -1477,8 +1477,13 @@ __margo_default_monitor_on_add_pool(void* uargs, * sizeof(*monitor->pool_total_size_time_series)); memset(&monitor->pool_size_time_series[current_num_pools], 0, sizeof(monitor->pool_size_time_series[current_num_pools])); + monitor->pool_size_time_series[current_num_pools].frame_capacity + = monitor->pool_size_time_series[current_num_pools - 1].frame_capacity; memset(&monitor->pool_total_size_time_series[current_num_pools], 0, sizeof(monitor->pool_total_size_time_series[current_num_pools])); + monitor->pool_total_size_time_series[current_num_pools].frame_capacity + = monitor->pool_total_size_time_series[current_num_pools - 1] + .frame_capacity; ABT_mutex_unlock( ABT_MUTEX_MEMORY_GET_HANDLE(&monitor->pool_time_series_mtx)); }