- Timestamp:
- Apr 27, 2022 6:19:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp
r94724 r94728 609 609 610 610 int64_t const diffLastCheckSecs = RTTimeSpecGetSeconds(&TimeDiff); 611 int64_t const diffLastCheckDays = diffLastCheckSecs / RT_SEC_1DAY_64;611 int64_t const diffLastCheckDays = diffLastCheckSecs / (int64_t)RT_SEC_1DAY_64; 612 612 613 613 /* Be as accurate as possible. */ 614 614 *aCheckNeeded = diffLastCheckSecs >= (int64_t)m->uCheckFreqSeconds ? TRUE : FALSE; 615 615 616 LogRel2(("Update agent (%s): Last update %R U64 days (%RU64 seconds) ago, check frequency is every %RU64 days (%RU64 seconds) -> Check %s\n",616 LogRel2(("Update agent (%s): Last update %RI64 days (%RI64 seconds) ago, check frequency is every %RU64 days (%RU64 seconds) -> Check %s\n", 617 617 mData.m_strName.c_str(), diffLastCheckDays, diffLastCheckSecs, cCheckFreqDays, m->uCheckFreqSeconds, 618 618 *aCheckNeeded ? "needed" : "not needed")); … … 747 747 748 748 Utf8Str strMsg; 749 HRESULT const rc= strMsg.printfVNoThrow(pcszMsgFmt, va);750 if ( FAILED(rc))749 int const vrc2 = strMsg.printfVNoThrow(pcszMsgFmt, va); 750 if (RT_FAILURE(vrc2)) 751 751 { 752 752 va_end(va); 753 return rc;753 return setErrorBoth(VERR_COM_IPRT_ERROR, vrc2, tr("Failed to format update agent error string (%Rrc)"), vrc2); 754 754 } 755 755
Note:
See TracChangeset
for help on using the changeset viewer.