[XLA] Fix condition in slow_operation_alarm.
I inverted an if condition and was firing the alarm if the deadline *had not* passed. Oops. PiperOrigin-RevId: 260239890
This commit is contained in:
parent
04c51715d5
commit
7cb2266fcd
@ -44,7 +44,7 @@ void AlarmLoop() {
|
|||||||
auto next = std::next(it);
|
auto next = std::next(it);
|
||||||
auto* alarm = *it;
|
auto* alarm = *it;
|
||||||
// Fire the alarm if applicable.
|
// Fire the alarm if applicable.
|
||||||
if (alarm->deadline() >= now) {
|
if (alarm->deadline() <= now) {
|
||||||
outstanding_alarms->erase(it);
|
outstanding_alarms->erase(it);
|
||||||
int64 count =
|
int64 count =
|
||||||
alarm->counter() == nullptr ? 0 : alarm->counter()->fetch_add(1);
|
alarm->counter() == nullptr ? 0 : alarm->counter()->fetch_add(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user