Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Haimerl committed Feb 25, 2025
1 parent c5acd01 commit 5a36b4a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stats/lib/stats-fetchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
}
})
Expand Down Expand Up @@ -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
}
})
Expand Down

0 comments on commit 5a36b4a

Please sign in to comment.