Skip to content

Commit

Permalink
Reversed calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Jan 13, 2016
1 parent e2400fe commit 2d60bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stratifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -5145,7 +5145,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg,
tv_t now_tv;

ts_to_tv(&now_tv, &now);
latency = ms_tvdiff(&wb->retired, &now_tv);
latency = ms_tvdiff(&now_tv, &wb->retired);
if (latency < client->latency) {
LOGDEBUG("Accepting %dms late share from client %"PRId64, latency, client->id);
goto no_stale;
Expand Down

0 comments on commit 2d60bd2

Please sign in to comment.