parent
4529b473dc
commit
1de593fd63
|
@ -5,6 +5,8 @@
|
|||
package linuxstatus
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/user"
|
||||
"strconv"
|
||||
|
||||
"go.wit.com/log"
|
||||
|
@ -30,6 +32,12 @@ func linuxLoop() {
|
|||
}
|
||||
// me.IPv6.SetText(all)
|
||||
|
||||
user, _ := user.Current()
|
||||
log.Println("os.Getuid =", user.Username, os.Getuid())
|
||||
if (me.uid != nil) {
|
||||
me.uid.Set(user.Username + " (" + strconv.Itoa(os.Getuid()) + ")")
|
||||
}
|
||||
|
||||
/*
|
||||
processName := getProcessNameByPort(53)
|
||||
fmt.Println("Process with port 53:", processName)
|
||||
|
|
Loading…
Reference in New Issue