Fix the value comparisons in the IDLETIME wakeup handler.
LessThan/GreaterThan comparisons were used in the wakeup handler, and LessOrEqual/GreaterOrEqual in the block handler. Change it to use LessOrEqual/GreaterOrEqual in both functions, since this is what XSyncNegativeComparison and XSyncPositiveComparison imply.
This commit is contained in:
parent
6a195e816b
commit
0f9e89b4e3
|
@ -2592,8 +2592,9 @@ IdleTimeWakeupHandler (pointer env,
|
||||||
IdleTimeQueryValue (NULL, &idle);
|
IdleTimeQueryValue (NULL, &idle);
|
||||||
|
|
||||||
if ((pIdleTimeValueGreater &&
|
if ((pIdleTimeValueGreater &&
|
||||||
XSyncValueGreaterThan (idle, *pIdleTimeValueGreater)) ||
|
XSyncValueGreaterOrEqual (idle, *pIdleTimeValueGreater)) ||
|
||||||
(pIdleTimeValueLess && XSyncValueLessThan (idle, *pIdleTimeValueLess)))
|
(pIdleTimeValueLess &&
|
||||||
|
XSyncValueLessOrEqual (idle, *pIdleTimeValueLess)))
|
||||||
{
|
{
|
||||||
SyncChangeCounter (IdleTimeCounter, idle);
|
SyncChangeCounter (IdleTimeCounter, idle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue