Skip to content

Commit

Permalink
fix(north): fix chunk count in logs when caching values
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Sep 17, 2024
1 parent 25eebf9 commit 9c54fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/north/north-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export default class NorthConnector<T extends NorthSettings = any> {
const chunkSize = this.connector.caching.maxSendCount;
for (let i = 0; i < values.length; i += chunkSize) {
const chunk = values.slice(i, i + chunkSize);
this.logger.debug(`Caching ${values.length} values (cache size: ${Math.floor((this.cacheSize / 1024 / 1024) * 100) / 100} MB)`);
this.logger.debug(`Caching ${chunk.length} values (cache size: ${Math.floor((this.cacheSize / 1024 / 1024) * 100) / 100} MB)`);
await this.valueCacheService.cacheValues(chunk);
}
}
Expand Down

0 comments on commit 9c54fe8

Please sign in to comment.