diff --git a/src/plugins/monitor/src/monMain.c b/src/plugins/monitor/src/monMain.c index df86c67f1b921c1dcac9abfefdcdf211f6b07802..17729b56e9b21bada586cdc6ad376b359f5f1484 100644 --- a/src/plugins/monitor/src/monMain.c +++ b/src/plugins/monitor/src/monMain.c @@ -1185,8 +1185,12 @@ static void monSaveGrantsInfo() { char *timeseries = (char *)row[i]; if (timeseries[0] == 'u') { pos += snprintf(sql + pos, SQL_LENGTH, ", NULL, NULL)"); + } else { + int32_t timeseries_used = strtol(timeseries, NULL, 10); + timeseries = strchr(timeseries, '/'); + int32_t timeseries_total = strtol(timeseries + 1, NULL, 10); + pos += snprintf(sql + pos, SQL_LENGTH, ", %d, %d)", timeseries_used, timeseries_total); } - //pos += snprintf(sql + pos, SQL_LENGTH, ", %d, %d)", (char *)row[i]); } } }