Skip to content

Commit

Permalink
Resolve issue with long running transmission daemons (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom authored and metalmatze committed Nov 14, 2018
1 parent 72333f8 commit 798699b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions session_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type (

// SessionStats contains information about the current & cumulative session
SessionStats struct {
DownloadSpeed int `json:"downloadSpeed"`
UploadSpeed int `json:"uploadSpeed"`
DownloadSpeed int64 `json:"downloadSpeed"`
UploadSpeed int64 `json:"uploadSpeed"`
ActiveTorrentCount int `json:"activeTorrentCount"`
PausedTorrentCount int `json:"pausedTorrentCount"`
TorrentCount int `json:"torrentCount"`
Expand All @@ -19,10 +19,10 @@ type (
}
// SessionStateStats contains current or cumulative session stats
SessionStateStats struct {
DownloadedBytes int `json:"downloadedBytes"`
UploadedBytes int `json:"uploadedBytes"`
FilesAdded int `json:"filesAdded"`
SecondsActive int `json:"secondsActive"`
SessionCount int `json:"sessionCount"`
DownloadedBytes int64 `json:"downloadedBytes"`
UploadedBytes int64 `json:"uploadedBytes"`
FilesAdded int64 `json:"filesAdded"`
SecondsActive int64 `json:"secondsActive"`
SessionCount int64 `json:"sessionCount"`
}
)
12 changes: 6 additions & 6 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type (
// TorrentArgumentsAdded specifies the torrent to get added data from
TorrentArgumentsAdded struct {
HashString string `json:"hashString"`
ID int `json:"id"`
ID int64 `json:"id"`
Name string `json:"name"`
}

Expand Down Expand Up @@ -60,16 +60,16 @@ type (

// File is a file contained inside a torrent
File struct {
BytesCompleted int `json:"bytesCompleted"`
Length int `json:"length"`
BytesCompleted int64 `json:"bytesCompleted"`
Length int64 `json:"length"`
Name string `json:"name"`
}

// FileStat describe a file's priority & if it's wanted
FileStat struct {
BytesCompleted int `json:"bytesCompleted"`
Priority int `json:"priority"`
Wanted bool `json:"wanted"`
BytesCompleted int64 `json:"bytesCompleted"`
Priority int `json:"priority"`
Wanted bool `json:"wanted"`
}

// TrackerStat has stats about the torrent's tracker
Expand Down

0 comments on commit 798699b

Please sign in to comment.