Skip to content

Commit e45afb1

Browse files
committed
修复BUG
1 parent 6b84c77 commit e45afb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

StringGo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package utils
22

33
import (
4-
"github.com/joy999/mahonia"
54
"io"
65
"log"
76
"regexp"
87
"strconv"
98
"strings"
9+
10+
"github.com/joy999/mahonia"
1011
)
1112

1213
type String string

Time.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func Sleep(seconds int) {
6161
}
6262

6363
func SleepF(seconds float64) {
64-
_s := time.Duration(seconds)
65-
_s *= 1e9
64+
_s := time.Duration(seconds * 1e9)
6665
time.Sleep(_s)
6766
}

0 commit comments

Comments
 (0)