Skip to content

Commit

Permalink
Update memorychecker.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 20, 2024
1 parent 6e024e4 commit 5f50e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/memorychecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void MemoryChecker::sGetFreeKB(intKB& procFreeKB, intKB& sysFreeKB)
(task_info_t)&info, &infoCount ) == KERN_SUCCESS ) {
bytes_in_use_by_app = info.resident_size;
}
#endif
#endif

enveUsedB = longB(static_cast<qint64>(bytes_in_use_by_app));
Expand Down Expand Up @@ -135,6 +134,7 @@ void MemoryChecker::sGetFreeKB(intKB& procFreeKB, intKB& sysFreeKB)
const int pageSize = 4;
freeExternal.fValue += vmstat.inactive_count * pageSize;
freeExternal.fValue += vmstat.free_count * pageSize;
#endif
#endif

const intKB enveUsedKB(enveUsedB);
Expand Down

0 comments on commit 5f50e52

Please sign in to comment.