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
1 changed files with 6 additions and 4 deletions

View File

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