OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1d1ec
)
fix
author
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 19 Aug 2019 03:21:45 +0000
(11:21 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 19 Aug 2019 03:21:45 +0000
(11:21 +0800)
toolbar/precog/monitor/stats.go
patch
|
blob
|
history
diff --git
a/toolbar/precog/monitor/stats.go
b/toolbar/precog/monitor/stats.go
index
0effb7b
..
09d4498
100644
(file)
--- a/
toolbar/precog/monitor/stats.go
+++ b/
toolbar/precog/monitor/stats.go
@@
-71,7
+71,7
@@
func (m *monitor) savePeerInfo(peerInfo *peers.PeerInfo) error {
// PingTimes uint64
// PongTimes uint64
}
- if err := m.db.Model(&orm.NodeLiveness{}).Where("node_id = ?
,
status is NOT ?", ormNode.ID, common.NodeOfflineStatus).
+ if err := m.db.Model(&orm.NodeLiveness{}).Where("node_id = ?
AND
status is NOT ?", ormNode.ID, common.NodeOfflineStatus).
UpdateColumn(&orm.NodeLiveness{
BestHeight: ormNodeLiveness.BestHeight,
AvgLantencyMS: ormNodeLiveness.AvgLantencyMS,