Changeset 86876 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
- Timestamp:
- Nov 12, 2020 4:38:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
r83974 r86876 210 210 rc = VGSvcReadPropUInt32(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 211 211 &g_TimeSyncSetThreshold, 0, 7*24*60*60*1000 /* a week */); 212 if ( RT_SUCCESS(rc) 213 || rc == VERR_NOT_FOUND) 214 { 215 rc = VGSvcCheckPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start"); 216 if (RT_SUCCESS(rc)) 217 g_fTimeSyncSetOnStart = true; 218 } 219 if ( RT_SUCCESS(rc) 220 || rc == VERR_NOT_FOUND) 221 { 222 rc = VGSvcCheckPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-no-set-start"); 223 if (RT_SUCCESS(rc)) 224 g_fTimeSyncSetOnStart = false; 225 } 226 if ( RT_SUCCESS(rc) 227 || rc == VERR_NOT_FOUND) 228 { 229 rc = VGSvcCheckPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore"); 230 if (RT_SUCCESS(rc)) 231 g_fTimeSyncSetOnRestore = true; 232 } 233 if ( RT_SUCCESS(rc) 234 || rc == VERR_NOT_FOUND) 235 { 236 rc = VGSvcCheckPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-no-set-on-restore"); 237 if (RT_SUCCESS(rc)) 238 g_fTimeSyncSetOnRestore = false; 239 } 240 if ( RT_SUCCESS(rc) 241 || rc == VERR_NOT_FOUND) 242 { 243 uint32_t uValue; 244 rc = VGSvcReadPropUInt32(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-verbosity", 245 &uValue, 0 /*uMin*/, 255 /*uMax*/); 246 if (RT_SUCCESS(rc)) 247 g_cTimeSyncVerbosity = uValue; 248 } 212 213 if (VbglR3GuestPropExist(uGuestPropSvcClientID, 214 "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start")) 215 g_fTimeSyncSetOnStart = true; 216 217 if (VbglR3GuestPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-no-set-start")) 218 g_fTimeSyncSetOnStart = false; 219 220 221 if (VbglR3GuestPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore")) 222 g_fTimeSyncSetOnRestore = true; 223 224 if (VbglR3GuestPropExist(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-no-set-on-restore")) 225 g_fTimeSyncSetOnRestore = false; 226 227 uint32_t uValue; 228 rc = VGSvcReadPropUInt32(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-verbosity", 229 &uValue, 0 /*uMin*/, 255 /*uMax*/); 230 if (RT_SUCCESS(rc)) 231 g_cTimeSyncVerbosity = uValue; 232 249 233 VbglR3GuestPropDisconnect(uGuestPropSvcClientID); 250 234 }
Note:
See TracChangeset
for help on using the changeset viewer.