[SLE] adjtime doesn't adjust system clock
From: Eva Dominguez (evadom2002_at_yahoo.es)
Date: Thu, 21 Oct 2004 17:26:30 +0200 (CEST) To: email@example.com
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
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
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
I hope somebody has any idea. In any case, thanks a
Renovamos el Correo Yahoo!: ˇ100 MB GRATIS!
Nuevos servicios, más seguridad
-- Check the headers for your unsubscription address For additional commands send e-mail to firstname.lastname@example.org Also check the archives at http://lists.suse.com Please read the FAQs: email@example.com