Changeset 11108 in vbox for trunk/src/VBox
- Timestamp:
- Aug 4, 2008 3:35:17 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34039
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r11083 r11108 347 347 rc = CFGMR3QueryString(mpValueNode, pszName, pchBuf, cchBuf); 348 348 /* Write the flags if there are any */ 349 pchBuf[cchValue] = '\0'; /* In case there aren't */ 349 if (RT_SUCCESS(rc)) 350 pchBuf[cchValue] = '\0'; /* In case there aren't */ 350 351 if (RT_SUCCESS(rc) && (mpFlagsNode != NULL) && (cchFlags != 1)) 351 352 CFGMR3QueryString(mpFlagsNode, pszName, pchBuf + cchValue, … … 422 423 if (RT_SUCCESS(rc)) 423 424 { 425 RTTIMESPEC time; 424 426 CFGMR3RemoveValue(mpValueNode, pszKey); 425 427 if (mpTimestampNode != NULL) … … 429 431 rc = CFGMR3InsertString(mpValueNode, pszKey, pszValue); 430 432 if (RT_SUCCESS(rc)) 431 rc = CFGMR3InsertInteger(mpTimestampNode, pszKey, RTTimeMilliTS()); 433 rc = CFGMR3InsertInteger(mpTimestampNode, pszKey, 434 RTTimeSpecGetNano(RTTimeNow(&time))); 432 435 } 433 436 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Main/MachineImpl.cpp
r11096 r11108 2808 2808 if (NULL != aValue) 2809 2809 { 2810 RTTIMESPEC time; 2810 2811 property.mValue = aValue; 2811 property.mTimestamp = RTTime MilliTS();2812 property.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time)); 2812 2813 if (aFlags != NULL) 2813 2814 property.mFlags = aFlags; … … 2817 2818 else if (aValue != NULL) 2818 2819 { 2820 RTTIMESPEC time; 2819 2821 mHWData.backup(); 2820 2822 property.mName = aName; 2821 2823 property.mValue = aValue; 2822 property.mTimestamp = RTTime MilliTS();2824 property.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time)); 2823 2825 property.mFlags = (aFlags != NULL ? Bstr(aFlags) : Bstr("")); 2824 2826 mHWData->mGuestProperties.push_back(property);
Note:
See TracChangeset
for help on using the changeset viewer.