Skip to content

Commit

Permalink
Fix print format for float values
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <[email protected]>
  • Loading branch information
PrasadG193 committed May 3, 2021
1 parent eda8782 commit 1b7f13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func getAvailableSessions(response []byte, age int) error {
}
fmt.Fprintln(w, fmt.Sprintf("Sessions\t"))
fmt.Fprintln(w, fmt.Sprintf("\tDate\t%s", s.Date))
fmt.Fprintln(w, fmt.Sprintf("\tAvailableCapacity\t%d", s.AvailableCapacity))
fmt.Fprintln(w, fmt.Sprintf("\tAvailableCapacity\t%f", s.AvailableCapacity))
fmt.Fprintln(w, fmt.Sprintf("\tMinAgeLimit\t%d", s.MinAgeLimit))
fmt.Fprintln(w, fmt.Sprintf("\tVaccine\t%s", s.Vaccine))
fmt.Fprintln(w, fmt.Sprintf("\tSlots"))
Expand Down

0 comments on commit 1b7f13c

Please sign in to comment.