Skip to content

Commit

Permalink
Fix timestamps being reversed for backends (netdata#6040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfundul authored and jackyhuang85 committed Jan 1, 2020
1 parent 5b09464 commit b31c4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/backends.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ calculated_number backend_calculate_value_from_stored_data(
counter++;
}
*/
for(rd->state->query_ops.init(rd, &handle, before, after) ; !rd->state->query_ops.is_finished(&handle) ; ) {
for(rd->state->query_ops.init(rd, &handle, after, before) ; !rd->state->query_ops.is_finished(&handle) ; ) {
n = rd->state->query_ops.next_metric(&handle);

if(unlikely(!does_storage_number_exist(n))) {
Expand Down

0 comments on commit b31c4ce

Please sign in to comment.