We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fe845 commit 186123dCopy full SHA for 186123d
1 file changed
cardano-node/src/Cardano/Node/Tracing/Tracers/BlockReplayProgress.hs
@@ -19,6 +19,8 @@ import Ouroboros.Network.Point (withOrigin)
19
import Control.Concurrent.MVar
20
import Data.Aeson (Value (String), (.=))
21
import Data.Text (pack)
22
+import Numeric (showFFloat)
23
+
24
25
newtype ReplayBlockState = ReplayBlockState
26
{ -- | Last slot for which a `ReplayBlockStats` message has been issued.
@@ -63,7 +65,7 @@ instance LogFormatting ReplayBlockStats where
63
65
<> " out of "
64
66
<> textShow (unSlotNo rpsGoalSlot)
67
<> ". Progress: "
- <> textShow (progressForHuman stats)
68
+ <> pack (showFFloat (Just 2) (progressForHuman stats) mempty)
69
<> "%"
70
71
asMetrics stats =
0 commit comments