Skip to content

Commit

Permalink
Peer info fix
Browse files Browse the repository at this point in the history
  • Loading branch information
h31 committed Aug 3, 2018
1 parent b45caab commit 348f001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qBT/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ type TorrentsList struct {
Force_start bool // True if force start is enabled for this torrent
Save_path string // Torrent save path
Added_on int64
Completion_on int64 // Torrent completion time
Completion_on int64 // Torrent completion time
}

type PeerInfo struct {
Up_speed int
Uploaded int64
Down_speed int
Dl_speed int
Port int
Downloaded int64
Client string
Expand Down
4 changes: 2 additions & 2 deletions reflection/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ func MapPropsPeers(dst JsonMap, hash string) {
clientName := EscapeString(peer.Client)
country := EscapeString(peer.Country)
trPeers = append(trPeers, transmission.PeerInfo{
RateToPeer: peer.Down_speed,
RateToClient: peer.Up_speed,
RateToPeer: peer.Up_speed,
RateToClient: peer.Dl_speed,
ClientName: clientName,
FlagStr: peer.Flags,
Country: country,
Expand Down

0 comments on commit 348f001

Please sign in to comment.