mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
6393dc1ea5
commit
d5fb7b6754
5 changed files with 28 additions and 13 deletions
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func (mod *Module) generateDotGraph(bssid string) error {
|
||||
mod.wLock.Lock()
|
||||
defer mod.wLock.Unlock()
|
||||
|
||||
start := time.Now()
|
||||
if err := mod.updateSettings(); err != nil {
|
||||
return err
|
||||
|
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func (mod *Module) generateJSONGraph(bssid string) error {
|
||||
mod.wLock.Lock()
|
||||
defer mod.wLock.Unlock()
|
||||
|
||||
start := time.Now()
|
||||
if err := mod.updateSettings(); err != nil {
|
||||
return err
|
||||
|
|
|
@ -10,6 +10,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -46,6 +47,7 @@ type Module struct {
|
|||
gw *Node
|
||||
iface *Node
|
||||
eventBus session.EventBus
|
||||
wLock sync.Mutex
|
||||
}
|
||||
|
||||
func NewModule(s *session.Session) *Module {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue