Operating System - HP-UX
1752719 Members
5802 Online
108789 Solutions
New Discussion юеВ

Re: Adjusting data backwards slowly in HPUX10.20

 
kenny chia
Regular Advisor

Re: Adjusting data backwards slowly in HPUX10.20

I will write the following program to slow down the time on server1 by 250,000usec. It will run every 10 minutes. I will test and check the results

#include
int main()
{
struct timeval forward;
forward.tv_sec = 0;
forward.tv_usec = -250000;

if (adjtime(&forward, (struct timeval *)NULL) == -1)
perror("adjtime() failure");
}
All Your Bases Are Belong To Us!
kenny chia
Regular Advisor

Re: Adjusting data backwards slowly in HPUX10.20

Hi all, does adjtime and ntpd sets the hardware clock too? In linux, there is a system (OS) clock and hardware (BIOS) clock. Is this the case for HPUX??
All Your Bases Are Belong To Us!
Yogeeraj_1
Honored Contributor

Re: Adjusting data backwards slowly in HPUX10.20

hi,

have a look at the following 2 threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=534810
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=77667


hope this helps!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)