From: Florian Forster Date: Mon, 29 Jan 2018 11:44:51 +0000 (+0100) Subject: handleNotification(): Fix format string. X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=9fdb1a75576554aab4adbe09dbdf5de50708775f;p=kraftakt.git handleNotification(): Fix format string. --- diff --git a/kraftakt.go b/kraftakt.go index afb5e4d..b49f787 100644 --- a/kraftakt.go +++ b/kraftakt.go @@ -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 } }()