Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
temporary workaround for EOS-5754
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Jul 21, 2023
1 parent 13b77ae commit 1c485d5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -1176,18 +1176,15 @@ func (c *Client) mapToFileInfo(ctx context.Context, kv, attrs map[string]string,
if mtimesec, err = strconv.ParseUint(stimeSplit[0], 10, 64); err == nil {
mtimeSet = true
}

if mtimenanos, err = strconv.ParseUint(stimeSplit[1], 10, 32); err != nil {
mtimeSet = false
}
}
if !mtimeSet {
mtimeSplit := strings.Split(kv["mtime"], ".")
if mtimesec, err = strconv.ParseUint(mtimeSplit[0], 10, 64); err != nil {
return nil, err
}
if mtimenanos, err = strconv.ParseUint(mtimeSplit[1], 10, 32); err != nil {
return nil, err
}
mtimesec, _ = strconv.ParseUint(mtimeSplit[0], 10, 64)
mtimenanos, _ = strconv.ParseUint(mtimeSplit[1], 10, 32)
}

isDir := false
Expand Down

0 comments on commit 1c485d5

Please sign in to comment.