Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
memory align issues fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Mar 16, 2020
1 parent fda95af commit 2ae7de9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (
)

type Torrent struct {
// put at first postition to prevent memorty align issues.
Stats torrent.TorrentStats

//anacrolix/torrent
InfoHash string
Name string
Expand All @@ -16,6 +19,7 @@ type Torrent struct {
Uploaded int64
Size int64
Files []*File

//cloud torrent
Started bool
Done bool
Expand All @@ -27,7 +31,6 @@ type Torrent struct {
SeedRatio float32
AddedAt time.Time
StartedAt time.Time
Stats torrent.TorrentStats
t *torrent.Torrent
dropWait chan struct{}
updatedAt time.Time
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJS
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
github.com/jpillora/ansi v1.0.1 h1:7P+6bEkKCe9owPdv4xhRWpfWhUDXL2ybpE7+IVFhqNo=
github.com/jpillora/ansi v1.0.1/go.mod h1:D2tT+6uzJvN1nBVQILYWkIdq7zG+b5gcFN5WI/VyjMY=
github.com/jpillora/ansi v1.0.2 h1:+Ei5HCAH0xsrQRCT2PDr4mq9r4Gm4tg+arNdXRkB22s=
github.com/jpillora/ansi v1.0.2/go.mod h1:D2tT+6uzJvN1nBVQILYWkIdq7zG+b5gcFN5WI/VyjMY=
github.com/jpillora/archive v0.0.0-20160301031048-e0b3681851f1 h1:3ggQJKuQ4rwBDUa3N3adJRrI8XkOS/7oWhKWbeuBIN0=
github.com/jpillora/archive v0.0.0-20160301031048-e0b3681851f1/go.mod h1:MvVqA/jM3UcSNdHn6lskwC+/6qzjd9fmyCh+8cxrCRU=
github.com/jpillora/cookieauth v1.0.0 h1:1BYnSG4c+/5kutOsY+7/Ba+rRhUfYv61Jrf605CxfRw=
Expand Down

0 comments on commit 2ae7de9

Please sign in to comment.