mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
opt tick
This commit is contained in:
parent
65f4a27dbb
commit
3c0f0b7890
@ -18,6 +18,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func _ssh_tick(m *ice.Message, pw io.Writer) {
|
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() {
|
m.Go(func() {
|
||||||
for {
|
for {
|
||||||
m.Sleep(m.Option("tick"))
|
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