diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-09-15 14:51:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 14:51:31 +0300 |
commit | 717f258c307599ca5955fd34753dbc0430966143 (patch) | |
tree | 6144e7f546a017a4af1d211d635835d663005cb3 /libnetdata | |
parent | 3bae63f27d60eb0abfbeb83beb35dfd55c96b4a9 (diff) |
Facets: fixes 5 (#15976)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/facets/facets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnetdata/facets/facets.c b/libnetdata/facets/facets.c index e70f11beff..8259e46e91 100644 --- a/libnetdata/facets/facets.c +++ b/libnetdata/facets/facets.c @@ -187,7 +187,7 @@ static usec_t calculate_histogram_bar_width(usec_t after_ut, usec_t before_ut) { static int array_size = sizeof(valid_durations_s) / sizeof(valid_durations_s[0]); usec_t duration_ut = before_ut - after_ut; - usec_t bar_width_ut = 1 * 60 * USEC_PER_SEC; + usec_t bar_width_ut = 1 * USEC_PER_SEC; for (int i = array_size - 1; i >= 0; --i) { if (duration_ut / (valid_durations_s[i] * USEC_PER_SEC) >= HISTOGRAM_COLUMNS) { @@ -1456,6 +1456,7 @@ void facets_report(FACETS *facets, BUFFER *wb) { buffer_json_member_add_boolean(wb, "enabled", true); buffer_json_member_add_string(wb, "key", "anchor"); buffer_json_member_add_string(wb, "column", "timestamp"); + buffer_json_member_add_string(wb, "units", "timestamp_usec"); } buffer_json_object_close(wb); // pagination |