]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/aux/timesync.c
exec(2): fix prototypes
[plan9front.git] / sys / src / cmd / aux / timesync.c
index f45060dc2737c40eb6ee859cd6439e9f26a9a992..e6928172237ce8a8ed887231dce0f4f4ed341de9 100644 (file)
@@ -288,8 +288,8 @@ main(int argc, char **argv)
        /* figure out our time interface and initial frequency */
        inittime();
        gettime(0, 0, &hz);
-       minhz = hz/10;
-       maxhz = hz*10;
+       minhz = hz / 2;
+       maxhz = hz * 2;
        myprec = getclockprecision(hz);
 
        /* convert the accuracy from nanoseconds to ticks */
@@ -1273,6 +1273,7 @@ sample(long (*get)(void))
        last = (*get)();
        for(;;){
                gettime(&start, 0, 0);
+               sleep(5);
                this = (*get)();
                gettime(&end, 0, 0);
                if(this != last)