From f7d207ff8db4ea6215ad285971ba1061a0f67c51 Mon Sep 17 00:00:00 2001 From: Solomon Bekele Date: Wed, 23 Oct 2024 21:14:19 +0000 Subject: [PATCH] minor change on delta --- ze/btx_zeinterval_callbacks.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ze/btx_zeinterval_callbacks.cpp b/ze/btx_zeinterval_callbacks.cpp index 2b655045..6fb3e461 100644 --- a/ze/btx_zeinterval_callbacks.cpp +++ b/ze/btx_zeinterval_callbacks.cpp @@ -784,11 +784,6 @@ std::optional get_device_hash(void *usr_data, const char *hostname, } uint64_t calculate_delta(uint64_t current_val, uint64_t prev_val) { - // return zero if equal - if (current_val == prev_val) { - return 0; - } - // calculate the delta, considering overflow if (current_val >= prev_val) { return current_val - prev_val;