()
| 138 | } |
| 139 | |
| 140 | func (l *LocalNodeImpl) UpdateNodeStats() bool { |
| 141 | l.lock.Lock() |
| 142 | defer l.lock.Unlock() |
| 143 | |
| 144 | stats, err := l.nodeStats.UpdateAndGetNodeStats() |
| 145 | if err != nil { |
| 146 | return false |
| 147 | } |
| 148 | |
| 149 | l.node.Stats = stats |
| 150 | return true |
| 151 | } |
| 152 | |
| 153 | func (l *LocalNodeImpl) SecondsSinceNodeStatsUpdate() float64 { |
| 154 | l.lock.RLock() |
nothing calls this directly
no test coverage detected