Skip to content

Commit 0e3cd50

Browse files
Code-Hexmethane
andauthored
Update utils.go
Co-authored-by: Inada Naoki <[email protected]>
1 parent 9e639e4 commit 0e3cd50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ func parseByte2Digits(b1, b2 byte) (int, error) {
217217
}
218218

219219
func parseByteNanoSec(b []byte) (int, error) {
220-
l := len(b)
221220
ns, digit := 0, 100000 // max is 6-digits
222-
for i := 20; i < l; i++ {
221+
for i := 0; i < len(b); i++ {
223222
v, err := bToi(b[i])
224223
if err != nil {
225224
return 0, err

0 commit comments

Comments
 (0)