Issue #2879: Move int64 declarations back to the top of the Meter strut for proper memory alignment.

This commit is contained in:
Jeff Walter 2018-02-24 11:36:01 -06:00
parent 6f503b2b8e
commit 9224bb1686

@ -19,10 +19,6 @@ import (
// files and bytes transferred as well as the number of files and bytes that
// get skipped because the transfer is unnecessary.
type Meter struct {
DryRun bool
Logger *tools.SyncWriter
Direction Direction
finishedFiles int64 // int64s must come first for struct alignment
transferringFiles int64
estimatedBytes int64
@ -36,6 +32,10 @@ type Meter struct {
fileIndex map[string]int64 // Maps a file name to its transfer number
fileIndexMutex *sync.Mutex
updates chan *tasklog.Update
DryRun bool
Logger *tools.SyncWriter
Direction Direction
}
type env interface {