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 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored and glpatcern committed Jul 31, 2023
1 parent b85fbde commit 4b30e79
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)
}

var ctimesec, ctimenanos uint64
Expand Down

0 comments on commit 4b30e79

Please sign in to comment.