18 const FwSizeType MAX_MEASURABLE_RAM_UNITS = std::numeric_limits<FwSizeType>::max() / info.mem_unit;
19 if ((MAX_MEASURABLE_RAM_UNITS < info.totalram) || (MAX_MEASURABLE_RAM_UNITS < info.freeram)) {
20 memory_usage.
total = 1;
21 memory_usage.
used = 1;
25 memory_usage.
total = info.totalram * info.mem_unit;
26 memory_usage.
used = info.freeram * info.mem_unit;