Skip to content

Commit

Permalink
fix wrong type conversion
Browse files Browse the repository at this point in the history
Signed-off-by: xeptore <[email protected]>
  • Loading branch information
xeptore committed Mar 24, 2023
1 parent 377a1af commit 761f12a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
path: ./bin/ingest
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && ${{ github.event_name != 'pull_request' }}
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' }}
with:
files: ./bin/ingest
- name: Docker Meta
Expand Down
8 changes: 4 additions & 4 deletions pkg/dump/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ type Peer struct {
Endpoint *net.UDPAddr
AllowedIPs []net.IPNet
LastHandshakeTime time.Time
ReceiveBytes uint
TransmitBytes uint
ReceiveBytes uint64
TransmitBytes uint64
PersistentKeepaliveInterval time.Duration
}

Expand Down Expand Up @@ -125,8 +125,8 @@ func Parse(raw []byte) ([]Peer, error) {
Endpoint: endpoint,
AllowedIPs: allowedIPs,
LastHandshakeTime: latestHandshakeTime,
ReceiveBytes: uint(receiveBytes),
TransmitBytes: uint(transmitBytes),
ReceiveBytes: uint64(receiveBytes),
TransmitBytes: uint64(transmitBytes),
PersistentKeepaliveInterval: time.Duration(persistentKeepaliveInterval),
})
}
Expand Down

0 comments on commit 761f12a

Please sign in to comment.