handleNotification(): Fix format string.
authorFlorian Forster <ff@octo.it>
Mon, 29 Jan 2018 11:44:51 +0000 (12:44 +0100)
committerFlorian Forster <ff@octo.it>
Mon, 29 Jan 2018 11:44:51 +0000 (12:44 +0100)
kraftakt.go

index afb5e4d..b49f787 100644 (file)
@@ -322,7 +322,7 @@ func handleNotification(ctx context.Context, s *fitbit.Subscription) error {
                        break
                }
                if err := gfitClient.SetDistance(ctx, distanceMeters, tm); err != nil {
-                       errs = append(errs, fmt.Errorf("gfitClient.SetDistance(%d) = %v", distanceMeters, err))
+                       errs = append(errs, fmt.Errorf("gfitClient.SetDistance(%g) = %v", distanceMeters, err))
                        return
                }
        }()