mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt tick
This commit is contained in:
parent
65f4a27dbb
commit
3c0f0b7890
@ -18,6 +18,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func _ssh_tick(m *ice.Message, pw io.Writer) {
|
||||
@ -27,7 +28,7 @@ func _ssh_tick(m *ice.Message, pw io.Writer) {
|
||||
m.Go(func() {
|
||||
for {
|
||||
m.Sleep(m.Option("tick"))
|
||||
pw.Write([]byte("# " + m.Time() + "\n"))
|
||||
pw.Write([]byte("# " + time.Now().Format(ice.MOD_TIME) + "\n"))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user