From 09719626e566af8aa65cb0821403579c9d7d443c Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Wed, 26 Jul 2017 00:13:12 +0200 Subject: [PATCH] htlcswitch: Fix typo in logging Because the .String() method of an amount already includes a unit string ("BTC" usually), it was printing "0.00000001 BTC satoshi". --- htlcswitch/switch.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index cda605be2..201819404 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -723,9 +723,10 @@ func (s *Switch) htlcForwarder() { // Otherwise, we'll log this diff, then accumulate the // new stats into the running total. - log.Infof("Sent %v satoshis received %v satoshi "+ + log.Infof("Sent %v satoshis received %v satoshis "+ "in the last 10 seconds (%v tx/sec)", - diffSatSent, diffSatRecv, float64(diffNumUpdates)/10) + int64(diffSatSent), int64(diffSatRecv), + float64(diffNumUpdates)/10) totalNumUpdates += diffNumUpdates totalSatSent += diffSatSent