Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issue with long running transmission daemons #8

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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