1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 17:49:39 +02:00

Report only launch-time value of maxAssetCacheWait

This commit is contained in:
Raymond Hill 2023-03-15 08:32:56 -04:00
parent 47c731f680
commit 8e35aa74f0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -558,10 +558,12 @@ const assetCacheRead = async function(assetKey, updateReadTime = false) {
cacheStorage.get(internalKey),
]);
µb.supportStats.maxAssetCacheWait = Math.max(
Date.now() - t0,
parseInt(µb.supportStats.maxAssetCacheWait, 10) || 0
) + ' ms';
if ( µb.readyToFilter !== true ) {
µb.supportStats.maxAssetCacheWait = Math.max(
Date.now() - t0,
parseInt(µb.supportStats.maxAssetCacheWait, 10) || 0
) + ' ms';
}
if (
bin instanceof Object === false ||