[SLE] adjtime doesn't adjust system clock

From: Eva Dominguez (evadom2002_at_yahoo.es)
Date: 10/21/04

  • Next message: Phil Burness: "[SLE] apt-get and km* files"
    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
    

  • Next message: Phil Burness: "[SLE] apt-get and km* files"

    Relevant Pages

    • Re: adjtime()
      ... When to use this adjtime() syscall in a program. ... If I want to adjust 3 min using adjtimehow much time ... we use POSIX timer to run a separate clock in our ... External process ahs the control of system clock. ...
      (comp.protocols.time.ntp)
    • adjtime()
      ... When to use this adjtime() syscall in a program. ... If I want to adjust 3 min using adjtimehow much time ... we use POSIX timer to run a separate clock in our ... External process ahs the control of system clock. ...
      (comp.protocols.time.ntp)
    • Re: [SLE] Firewall headaches with NFS
      ... but on my (SuSE 9.2) system the ... after YaST was instructed to adjust the firewall for system use as an ...
      (SuSE)
    • Re: accessing internet time server
      ... Terry Liittschwager wrote: ... I'm new to Linux,, even newer to SuSE. ... of KDE and asking for it to be set. ... the Adjust Date & Time window ...
      (alt.os.linux.suse)
    • Re: [SLE] K3b setup issues
      ... Peter B Van Campen wrote: ... > defined and documented how SUSE has setup up who, ... Then place symlinks for all "root" apps, ... Adjust the menu items accordingly. ...
      (SuSE)