Skip to content

Commit

Permalink
fix: wrong data in network status
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Dec 2, 2023
1 parent ec6dfee commit 1d6176c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func (b *Bot) networkInfo() string {
}
msg += "\nThe following are the currentl statistics:\n"
msg += fmt.Sprintf("Network started at : %v\n", time.UnixMilli(nodes.StartedAt*1000).Format("02/01/2006, 15:04:05"))
msg += fmt.Sprintf("Total bytes sent : %v\n", nodes.TotalSentBytes)
msg += fmt.Sprintf("Total received bytes : %v\n", nodes.TotalReceivedBytes)
msg += fmt.Sprintf("Total bytes sent : %v\n", uint32(nodes.TotalSentBytes))
msg += fmt.Sprintf("Total received bytes : %v\n", uint32(nodes.TotalReceivedBytes))
msg += fmt.Sprintf("Number of peer nodes: %v\n", len(nodes.Peers))
// check block height
blockchainInfo, err := b.cm.GetBlockchainInfo()
Expand Down

0 comments on commit 1d6176c

Please sign in to comment.