summaryrefslogtreecommitdiff
path: root/src/exporter
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-10-07 11:32:17 +0800
committerchenzizhan <[email protected]>2023-10-07 11:32:17 +0800
commitbf4c060bd5cb4d190824dc7b112a09f3caabcbdf (patch)
tree96e27906c26ad7615ce3185bd3f8b4331b6ee679 /src/exporter
parent1a859ba545ad04b8262ede9c2a02a3fbceed062f (diff)
get max cell id -> get max sampling
Diffstat (limited to 'src/exporter')
-rw-r--r--src/exporter/cjson_exporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exporter/cjson_exporter.c b/src/exporter/cjson_exporter.c
index f9456d1..4055182 100644
--- a/src/exporter/cjson_exporter.c
+++ b/src/exporter/cjson_exporter.c
@@ -668,7 +668,7 @@ struct cellwise_rec_for_export *read_tag_and_field(const struct fieldstat *insta
size_t n_cell_total = 0;
for (int i = 0; i < cube_id_len; i++) {
- n_cell_total += fieldstat_get_max_cell_id(instance, cube_id[i]);
+ n_cell_total += fieldstat_get_used_sampling(instance, cube_id[i]);
}
free(cube_id);
if (n_cell_total == 0) {