refactor: remove pages, combine grpc http port

This commit is contained in:
naiba committed 2024-10-20 11:47:45 +08:00
1 parent 17a04757a0
commit 542f06551e
20 files changed
+368 -761

No files matched your search

-3
View File
@@ -350,9 +350,6 @@ func (ss *ServiceSentinel) worker() {
ts.count++
ts.ping = (ts.ping*float32(ts.count-1) + mh.Delay) / float32(ts.count)
if ts.count == Conf.AvgPingCount {
if ts.ping > float32(Conf.MaxTCPPingValue) {
ts.ping = float32(Conf.MaxTCPPingValue)
}
ts.count = 0
if err := DB.Create(&model.MonitorHistory{
MonitorID: mh.GetId(),