зеркало из https://github.com/mozilla/pjs.git
Bug 751509 - Don't assert that about:memory percentages are less than 100%. r=njn
This commit is contained in:
Родитель
f6f26e0dbb
Коммит
7865ab6e60
|
@ -1415,7 +1415,7 @@ OtherReport.prototype = {
|
||||||
case UNITS_BYTES:
|
case UNITS_BYTES:
|
||||||
case UNITS_COUNT:
|
case UNITS_COUNT:
|
||||||
case UNITS_COUNT_CUMULATIVE: return n < 0;
|
case UNITS_COUNT_CUMULATIVE: return n < 0;
|
||||||
case UNITS_PERCENTAGE: return !(0 <= n && n <= 10000);
|
case UNITS_PERCENTAGE: return n < 0; /* percentages may be greater than 100% */
|
||||||
default:
|
default:
|
||||||
assert(false, "bad units in OtherReport.isInvalid");
|
assert(false, "bad units in OtherReport.isInvalid");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче