- Timestamp:
- Feb 27, 2007 8:46:18 AM (18 years ago)
- Location:
- trunk/src/VBox/Additions/linux/daemon
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/daemon/Makefile
r762 r1069 32 32 vboxadd-timesync_LIBS = \ 33 33 $(PATH_LIB)/RuntimeLnx32GuestR3.a 34 # $(PATH_LIB)/VBoxGuestLibLinux.a - what was this doing here? it's ring-0 library from what I can tell...35 34 vboxadd-timesync_DEFS = _GNU_SOURCE 36 35 -
trunk/src/VBox/Additions/linux/daemon/vboxadd_timesync.c
r5 r1069 36 36 { 37 37 printf("vboxadd-timesync [--interval <seconds>]\n" 38 " [--daemonize]" 39 "\n"); 38 " [--daemonize]\n"); 40 39 } 41 40 … … 85 84 int secInterval = 10; 86 85 int fDaemonize = 0; 87 int c; 88 int fd; 86 int c, fd; 89 87 VMMDevReqHostTime req; 90 88 … … 153 151 if (VBOX_SUCCESS(req.header.rc)) 154 152 { 155 /* set the system time */ 153 /** Set the system time. 154 * @@todo r=frank: This is too choppy. Adapt time smoother and try 155 * to prevent negative time differences. */ 156 156 struct timeval tv; 157 tv.tv_sec = req.time / (uint64_t)1000;157 tv.tv_sec = req.time / (uint64_t)1000; 158 158 tv.tv_usec = (req.time % (uint64_t)1000) * 1000; 159 159 settimeofday(&tv, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.