[SLE] adjtime doesn't adjust system clock
From: Eva Dominguez (evadom2002_at_yahoo.es)
Date: 10/21/04
- Previous message: Fred Miller: "Re: [SLE] ordering 9.2"
- Next in thread: Carlos E. R.: "Re: [SLE] adjtime doesn't adjust system clock"
- Reply: Carlos E. R.: "Re: [SLE] adjtime doesn't adjust system clock"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 21 Oct 2004 17:26:30 +0200 (CEST) To: suse-linux-e@suse.com
Hi everybody!
I have been reading a lot of old mails in this list
about hour adjustment. But I see thay are based on
adjusting hardware-clock and system-clock and my
problem is diferent.
I have a C program that receives the hour from a gps
device (connected through a serial port) and tries to
adjust the system-clock to that gps-hour. This is
possible with a C function called "adjtime". So, the
only thing I get using adjtime function is the
system-clock is more and more far away each time.
Adjtime DOESN'T adjust anything!!
I have tested it using "settimeofday" instead of
adjtime. Settimeofday changes the time more abruptly
and there are more problems with files date. So, is
not a good option.
My distro is Suse 9.0. I have tested it in Suse 9.1
and it doesn't work. But, I have tested the same
program in RedHat 7.2 and 8.0 and adjtime works
right!!.
The only diference I have seen between Suse and
RedHat machines is when I run the command "adjtimex
--p". At Suse I got:
TICK = 1000
FREQUENCY = 0
And RedHat:
TICK = 10000
FREQUENCY = 0
I have tried to change the tick in Suse machines to
10000 but it doesn't let me (it says: "invalid
argument")
I hope somebody has any idea. In any case, thanks a
lot.
Eva
______________________________________________
Renovamos el Correo Yahoo!: ˇ100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Fred Miller: "Re: [SLE] ordering 9.2"
- Next in thread: Carlos E. R.: "Re: [SLE] adjtime doesn't adjust system clock"
- Reply: Carlos E. R.: "Re: [SLE] adjtime doesn't adjust system clock"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|