File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ import (
15
15
"encoding/json"
16
16
"flag"
17
17
"fmt"
18
- log "github.com/sirupsen/logrus"
19
18
"os"
20
19
"os/exec"
21
20
"path/filepath"
21
+
22
+ log "github.com/sirupsen/logrus"
22
23
)
23
24
24
25
// The global path to the bpftool binary
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ func updateBpfPrograms() {
197
197
}
198
198
}
199
199
}
200
+
200
201
enrichPrograms ()
201
202
lock .Unlock ()
202
203
}
@@ -216,8 +217,6 @@ func NewBpfExplorerView(t *Tui) *BpfExplorerView {
216
217
217
218
func (b * BpfExplorerView ) Update () {
218
219
for {
219
- time .Sleep (3 * time .Second )
220
- updateBpfPrograms ()
221
220
currentSelection := b .programList .GetCurrentItem ()
222
221
223
222
tui .App .QueueUpdateDraw (func () {
@@ -226,6 +225,8 @@ func (b *BpfExplorerView) Update() {
226
225
populateList (b .programList )
227
226
b .programList .SetCurrentItem (currentSelection )
228
227
})
228
+ time .Sleep (3 * time .Second )
229
+ updateBpfPrograms ()
229
230
}
230
231
}
231
232
You can’t perform that action at this time.
0 commit comments