From 5a36b4aa8e5dc0b56c53e9896ab891733e799db9 Mon Sep 17 00:00:00 2001 From: Nikolas Haimerl Date: Tue, 25 Feb 2025 08:46:07 +0100 Subject: [PATCH] comments --- stats/lib/stats-fetchers.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stats/lib/stats-fetchers.js b/stats/lib/stats-fetchers.js index 5ddef21..0099283 100644 --- a/stats/lib/stats-fetchers.js +++ b/stats/lib/stats-fetchers.js @@ -359,7 +359,7 @@ export const fetchMinersTimingsSummary = async (pgPools, { from, to }) => { } /** - * Fetches the retrieval stats summary for all miners for given date range. + * Fetches the retrieval stats summary for all clients for given date range. * @param {PgPools} pgPools * @param {import('./typings.js').DateRangeFilter} filter */ @@ -388,7 +388,6 @@ export const fetchClientsRSRSummary = async (pgPools, filter) => { successful: r.successful, success_rate: r.total > 0 ? r.successful / r.total : null, successful_http: r.successful_http, - // successful_http might be null because the column was added later success_rate_http: r.total > 0 ? r.successful_http / r.total : null } }) @@ -427,7 +426,6 @@ export const fetchDailyClientRSRSummary = async (pgPools, { from, to }, clientId successful: r.successful, success_rate: r.total > 0 ? r.successful / r.total : null, successful_http: r.successful_http, - // successful_http might be null because the column was added later success_rate_http: r.total > 0 ? r.successful_http / r.total : null } })