UpdateTotalSyncTimeStat updates the TotalSyncTime to the current value + NumReplicationsActive each time this is called
()
| 38 | |
| 39 | // UpdateTotalSyncTimeStat updates the TotalSyncTime to the current value + NumReplicationsActive each time this is called |
| 40 | func (db *DatabaseContext) UpdateTotalSyncTimeStat() { |
| 41 | currentActiveReplications := db.DbStats.DatabaseStats.NumReplicationsActive.Value() |
| 42 | db.DbStats.DatabaseStats.TotalSyncTime.Add(currentActiveReplications) |
| 43 | } |
no test coverage detected