Actions
Bug #7804
closedSystem info widget CPU usage not updating in IE. Needs Math.trunc() polyfill.
Start date:
08/23/2017
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4
Affected Architecture:
Description
System info widget CPU usage not updating in IE. Needs Math.trunc() polyfill.
Also affected versions:
2.3.4 (gitsync), 2.3.5 (2.3)
2.4.0, 2.4.1 (2.4)
/usr/local/www/js/polyfills.js
/***
**
** Polyfill for older browsers that don't yet have the newer "Math.trunc()" function implemented.
** Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc#Polyfill
** Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc
**
***/
Math.trunc = Math.trunc || function(x) {
if (isNaN(x)) {
return NaN;
}
if (x > 0) {
return Math.floor(x);
}
return Math.ceil(x);
};
Actions