Skip to content

Commit

Permalink
minor change on delta
Browse files Browse the repository at this point in the history
  • Loading branch information
Solomon Bekele committed Oct 23, 2024
1 parent 39b4cab commit f7d207f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ze/btx_zeinterval_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,6 @@ std::optional<DeviceHash> 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;
Expand Down

0 comments on commit f7d207f

Please sign in to comment.