Skip to content

Commit

Permalink
fixed float64 / int64 conversion bug in snap active get
Browse files Browse the repository at this point in the history
  • Loading branch information
ogazitt committed Apr 17, 2020
1 parent 12825fa commit bc38a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func printActiveSnap(response []byte) {
t.AppendHeader(table.Row{"Field", "Value"})
for field, value := range entity {
if field == "activated" {
value = time.Unix(value.(int64)/1000, 0)
value = time.Unix(int64(value.(float64))/1000, 0)
}
t.AppendRow(table.Row{field, value})
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

// Version number
var Version string = "0.3.1"
var Version string = "0.3.2"

// GitHash of the last commit
var GitHash string

0 comments on commit bc38a30

Please sign in to comment.