clocktest is not granular enough

Bug #1565863 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Medium
Jeff Lane 

Bug Description

The current version of clocktest.c is not granular enough. It uses the basic time() function which returns only whole seconds and thus it can only measure clock skew or latency in whole seconds.

After a failure occurred and investigation revealed this, I discussed with the kernel team. their advice is that the largest deviation we should allow is 0.01 seconds, or 1/100th what we check for now. Even 0.01 is a huge deviation.

The test should be more fine-grained and accurate in the time it reports.

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :

If you use gettimeofday() you can get both seconds and microseconds.

Revision history for this message
Jeff Lane  (bladernr) wrote :

The linked branch has information on the reason I started looking into this and how the new output works

Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
milestone: none → 0.27
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.