Closed Bug 720490 Opened 14 years ago Closed 4 years ago

nsIdleService runs with too low internal resolution in its calculations

Categories

(Core :: Widget, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MikeK, Unassigned)

References

Details

The nsIdleService runs use a one second resolution in it's internal calculations, which is too little is it should support a one second resolution on its external interface as one could expect since you can ask for it with a one second resolution. (This is probably also what makes some of the failures on bug 517482 as that test only allows for max 1 second offset to the correct idle time.
Assignee: nobody → mozstuff
Blocks: 517482
Summary: nsIdleService runs with too low internal resolution in it's calculations → nsIdleService runs with too low internal resolution in its calculations
Status: NEW → ASSIGNED
While you're fixing this, please fix nsIdleService not to use PR_Now(). PR_Now is not suitable for intervals. This is a serious bug on any system which automatically changes its clock -- in particular, this applies to mobile devices, which sync their clocks via the radio.
(In reply to Justin Lebar [:jlebar] from comment #1) > While you're fixing this, please fix nsIdleService not to use PR_Now(). > PR_Now is not suitable for intervals. > > This is a serious bug on any system which automatically changes its clock -- > in particular, this applies to mobile devices, which sync their clocks via > the radio. This should be covered by bug 555313
While testing a solution to this I have found that the lack of resolution isn't the only explanation to the random orange in bug 517482. It needs further investigation.

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: mozstuff → nobody
Status: ASSIGNED → NEW

Bug 517482 was resolved. Closing this bug.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.