set_real_time_clock() is supposed to set the hardware clock as well.
Fixed dump function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6978 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c27ed74e34
commit
03c1062163
@ -52,9 +52,9 @@ rtc_print(void)
|
||||
uint32 currentTime;
|
||||
|
||||
currentTime = (sBootTime + system_time()) / 1000000;
|
||||
dprintf("system_time: %u\n", (unsigned)system_time());
|
||||
dprintf("boot_time: %u\n", (unsigned)sBootTime);
|
||||
dprintf("current_time: %u\n", (unsigned)currentTime);
|
||||
dprintf("system_time: %Ld\n", system_time());
|
||||
dprintf("boot_time: %Ld\n", sBootTime);
|
||||
dprintf("current_time: %u\n", currentTime);
|
||||
}
|
||||
|
||||
|
||||
@ -67,7 +67,6 @@ rtc_debug(int argc, char **argv)
|
||||
} else {
|
||||
// If there was an argument, reset the system and hw time.
|
||||
set_real_time_clock(strtoul(argv[1], NULL, 10));
|
||||
rtc_system_to_hw();
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -94,6 +93,7 @@ void
|
||||
set_real_time_clock(uint32 currentTime)
|
||||
{
|
||||
sBootTime = currentTime * 1000000LL - system_time();
|
||||
rtc_system_to_hw();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user