Skip to content

Commit

Permalink
fixed minor bug not reading the whole number
Browse files Browse the repository at this point in the history
  • Loading branch information
datadius committed Apr 24, 2024
1 parent 4f72b51 commit ea410af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *Response) ParseFileTime() (*FileInfos, error) {
return nil, errors.New("unable to parse Time protocol")
}

aTime, err := strconv.Atoi(string(parts[0][1:10]))
aTime, err := strconv.Atoi(string(parts[0][0:10]))
if err != nil {
return nil, errors.New("unable to parse ATime component of message")
}
Expand Down

0 comments on commit ea410af

Please sign in to comment.