|
|
@ -153,23 +153,22 @@ function onRequest(context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
viewModel["internalMemory"] = {};
|
|
|
|
viewModel["internalMemory"] = {};
|
|
|
|
viewModel["internalMemory"]["total"] = replaceNaNVal(Math.
|
|
|
|
|
|
|
|
round(filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] * 100) / 100);
|
|
|
|
|
|
|
|
if (filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] != 0) {
|
|
|
|
if (filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] != 0) {
|
|
|
|
viewModel["internalMemory"]["usage"] = replaceNaNVal(Math.round((filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] -
|
|
|
|
viewModel["internalMemory"]["total"] = replaceNaNVal(Math.round
|
|
|
|
filteredDeviceData["latestDeviceInfo"]["internalAvailableMemory"]) * 100) / 100);
|
|
|
|
(filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] * 100) / 100);
|
|
|
|
|
|
|
|
viewModel["internalMemory"]["usage"] = replaceNaNVal(Math.round
|
|
|
|
|
|
|
|
(filteredDeviceData["latestDeviceInfo"]["internalAvailableMemory"] * 100) / 100);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
viewModel["internalMemory"]["usage"] = 0;
|
|
|
|
viewModel["internalMemory"]["usage"] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
viewModel["externalMemory"] = {};
|
|
|
|
viewModel["externalMemory"] = {};
|
|
|
|
viewModel["externalMemory"]["total"] = replaceNaNVal(Math.
|
|
|
|
|
|
|
|
round(filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
|
|
|
|
|
|
|
|
if (filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] != 0) {
|
|
|
|
if (filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] != 0) {
|
|
|
|
|
|
|
|
viewModel["externalMemory"]["total"] = replaceNaNVal(Math.round
|
|
|
|
|
|
|
|
(filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
|
|
|
|
viewModel["externalMemory"]["usage"] = replaceNaNVal(Math.
|
|
|
|
viewModel["externalMemory"]["usage"] = replaceNaNVal(Math.
|
|
|
|
round((filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] -
|
|
|
|
round(filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"]* 100)
|
|
|
|
filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"])
|
|
|
|
/100);
|
|
|
|
/ filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 10000) / 100);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
viewModel["externalMemory"]["usage"] = 0;
|
|
|
|
viewModel["externalMemory"]["usage"] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|