Skip to content

Commit

Permalink
fix(print): Use int64 in print in order to support Arm6 (Raspberry Pi).
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Jan 15, 2019
1 parent 8c13380 commit 64fcbc4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ func printNotYetFinished(cmd *cobra.Command) {
color.Yellow("%s command is not yet implemented", cmd.Name())
}

func printByteInfo(l int) string {
func printByteInfo(n int) string {
// Use 64-bit ints to support platforms on which int is not large enough to represent
// the constants below (exabyte, petabyte, etc). For example: Raspberry Pi running arm6.
l := int64(n)
length := struct {
name string
value int
value int64
}{"", 0}

switch {
Expand Down

0 comments on commit 64fcbc4

Please sign in to comment.