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
Merge pull request #666 from qri-io/rpi
  • Loading branch information
dustmop authored Jan 15, 2019
2 parents 8c13380 + 64fcbc4 commit d19da13
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 d19da13

Please sign in to comment.