This seems to be the culprit:
|
for { |
|
historyFileInfo, err := os.Stat(historyPath) |
|
if err != nil { |
|
continue |
|
} |
|
currModTime = historyFileInfo.ModTime() |
|
|
|
if currModTime.After(m.lastUpdated) { |
|
m.lastUpdated = currModTime |
|
p.Send(rr) |
|
} |
|
} |
No need to loop at full speed. Add a sleep or use something like fsnotify.
This seems to be the culprit:
clipse/app/realtime.go
Lines 26 to 37 in 95d666b
No need to loop at full speed. Add a sleep or use something like fsnotify.