diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-25 22:58:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-25 22:58:40 +0200 |
| commit | 4c34b9efcd539c819648c927d7e3f53220df8ad2 (patch) | |
| tree | f9de9fd650a2d16316ba2c159990d891c9de5189 /internal/probemanager/manager.go | |
| parent | 67e10f34c92e93343adbd690b3b21e455e863bd3 (diff) | |
Fix stream paused scrolling and apply pending TUI/probe updates
Diffstat (limited to 'internal/probemanager/manager.go')
| -rw-r--r-- | internal/probemanager/manager.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/probemanager/manager.go b/internal/probemanager/manager.go index 65dd52b..b991c7c 100644 --- a/internal/probemanager/manager.go +++ b/internal/probemanager/manager.go @@ -260,6 +260,22 @@ func (m *Manager) ActiveCount() (active, total int) { return active, total } +// IsActive reports whether the syscall probe is currently active. +func (m *Manager) IsActive(syscall string) bool { + if m == nil || syscall == "" { + return false + } + + m.mu.Lock() + defer m.mu.Unlock() + + entry, ok := m.probes[syscall] + if !ok { + return false + } + return entry.active +} + func (m *Manager) Close() error { if m == nil { return nil |
