address pr comments

This commit is contained in:
Nim Wijetunga 2021-03-23 23:09:08 +00:00
parent e174ea0dfd
commit ea16d2cccd
2 changed files with 7 additions and 7 deletions

View File

@ -484,7 +484,7 @@ An |database-blurb1| Modifications to a database are performed via transactions.
.. function:: double fdb_database_get_main_thread_busyness(FDBDatabase* database)
Returns a value where 0 indicates that the client is idle and a value of 1 (or larger) indicates that the client is saturated. By default, this value is updated every second.
Returns a value where 0 indicates that the client is idle and 1 (or larger) indicates that the client is saturated. By default, this value is updated every second.
Transaction
===========

View File

@ -137,9 +137,9 @@ class Net2 final : public INetwork, public INetworkConnections {
private:
void updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
TaskPriority priority,
TaskPriority lastPriority,
double now);
TaskPriority priority,
TaskPriority lastPriority,
double now);
public:
Net2(const TLSConfig& tlsConfig, bool useThreadPool, bool useMetrics);
@ -1589,9 +1589,9 @@ void Net2::run() {
// Updates the PriorityStats found in NetworkMetrics
void Net2::updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
TaskPriority priority,
TaskPriority lastPriority,
double now) {
TaskPriority priority,
TaskPriority lastPriority,
double now) {
// Busy -> idle at binStats.priority
if (binStats.priority > priority && binStats.priority <= lastPriority) {