mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
This commit is contained in:
parent
ab2332d34c
commit
89c4ab3fbd
@ -163,13 +163,12 @@ function onRequest(context) {
|
||||
}
|
||||
|
||||
viewModel["externalMemory"] = {};
|
||||
viewModel["externalMemory"]["total"] = replaceNaNVal(Math.
|
||||
round(filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
|
||||
if (filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] != 0) {
|
||||
viewModel["externalMemory"]["total"] = replaceNaNVal(Math.round
|
||||
(filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
|
||||
viewModel["externalMemory"]["usage"] = replaceNaNVal(Math.
|
||||
round((filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] -
|
||||
filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"])
|
||||
/ filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 10000) / 100);
|
||||
filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"])* 100) /100);
|
||||
} else {
|
||||
viewModel["externalMemory"]["usage"] = 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user