diff --git a/icsstat/icsstat.go b/icsstat/icsstat.go index cfa4340..5de3a52 100644 --- a/icsstat/icsstat.go +++ b/icsstat/icsstat.go @@ -169,7 +169,7 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) { statInfos := new(StatInfos) s := GetIcsSid() - randNum := fmt.Sprintf("%d4", rand.Intn(9999)) + randNum := fmt.Sprintf("%04d", rand.Intn(9999)) // defer func() { // if err := recover(); err != nil { @@ -274,7 +274,7 @@ func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) { statInfos := new(StatInfos) s := GetIcsSid() - randNum := fmt.Sprintf("%d4", rand.Intn(9999)) + randNum := fmt.Sprintf("%04d", rand.Intn(9999)) defer t.Close()