This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
ccfos
/
nightingale
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
20
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
refactor: clean history data
tags/v5.8.0
710leo
6 years ago
parent
f3406af763
commit
3d8d6c6886
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/modules/collector/cache/cache.go
+ 1
- 1
src/modules/collector/cache/cache.go
View File
@@ -56,7 +56,7 @@ func (h *History) clean() {
defer h.Unlock()
now := time.Now().Unix()
for key, item := range h.Data {
if now-item.Timestamp >
60
{
if now-item.Timestamp >
2*item.Step
{
delete(h.Data, key)
}
}
Write
Preview
Loading…
Cancel
Save