[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:
Justin Lebar 2019-07-26 16:58:34 -07:00 committed by TensorFlower Gardener
parent 04c51715d5
commit 7cb2266fcd

View File

@ -44,7 +44,7 @@ void AlarmLoop() {
auto next = std::next(it);
auto* alarm = *it;
// Fire the alarm if applicable.
if (alarm->deadline() >= now) {
if (alarm->deadline() <= now) {
outstanding_alarms->erase(it);
int64 count =
alarm->counter() == nullptr ? 0 : alarm->counter()->fetch_add(1);