mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Don't measure size of downloaded cache
This commit is contained in:
6
lib/init-action.js
generated
6
lib/init-action.js
generated
@@ -88208,16 +88208,12 @@ async function downloadDependencyCaches(languages, logger, minimizeJavaJars) {
|
||||
restoreKeys
|
||||
);
|
||||
const download_duration_ms = Math.round(performance.now() - start);
|
||||
const download_size_bytes = Math.round(
|
||||
await getTotalCacheSize(cacheConfig.paths, logger)
|
||||
);
|
||||
if (hitKey !== void 0) {
|
||||
logger.info(`Cache hit on key ${hitKey} for ${language}.`);
|
||||
const hit_kind = hitKey === primaryKey ? "exact" /* Exact */ : "partial" /* Partial */;
|
||||
status[language] = {
|
||||
hit_kind,
|
||||
download_duration_ms,
|
||||
download_size_bytes
|
||||
download_duration_ms
|
||||
};
|
||||
} else {
|
||||
status[language] = { hit_kind: "miss" /* Miss */ };
|
||||
|
||||
Reference in New Issue
Block a user