Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit d1a73a8

Browse files
committed
Fix to use delta value for rho
Signed-off-by: Taewoong Kim <taewoong.kim@sk.com>
1 parent be763c4 commit d1a73a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dmclock_client.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ namespace crimson {
122122
} else {
123123
Counter delta =
124124
delta_counter - it->second.delta_prev_req;
125+
#ifdef USE_SEPARATED_RHO_CAL
125126
Counter rho =
126127
rho_counter - it->second.rho_prev_req;
127-
128+
#else
129+
Counter rho = delta;
130+
#endif
128131
it->second.req_update(delta_counter, rho_counter);
129132

130133
return ReqParams(uint32_t(delta), uint32_t(rho));

0 commit comments

Comments
 (0)