Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Better logs from AutoscaledPool class

Jan Curn3b0091a85c05
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3194c025..238d5cad5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+xxx
+===================
+- Better logs from `AutoscaledPool` class
+
0.14.8 / 2019-05-14
===================
- Bump `apify-client` to 0.5.17
diff --git a/src/autoscaling/system_status.js b/src/autoscaling/system_status.js
index 0918e68ef..ce594ab9d 100644
--- a/src/autoscaling/system_status.js
+++ b/src/autoscaling/system_status.js
@@ -213,8 +213,8 @@ class SystemStatus {
const wAvg = weightedAvg(values, weights);
return {
isOverloaded: wAvg > ratio,
- maxOverloadedRatio: ratio,
- actualRatio: wAvg,
+ limitRatio: ratio,
+ actualRatio: Math.round(wAvg * 1000) / 1000,
};
}
}