File tree Expand file tree Collapse file tree
cardano-recon-framework/src/Cardano/ReCon/Trace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ fill :: TemporalEventDurationMicrosec -> Seq TraceMessage -> Word64 -> [TraceMes
3737fill duration acc t (x : xs) | utcToMicroseconds x. tmsgAt <= t + fromIntegral duration = fill duration (acc |> x) t xs
3838fill duration acc t rest = (TemporalEvent t (Foldable. toList acc), t + fromIntegral duration, rest)
3939
40- -- | Slice up the trace messages into consequtive temporal events.
40+ -- | Slice up the trace messages into consecutive temporal events.
4141slice :: TemporalEventDurationMicrosec -> [TraceMessage ] -> [TemporalEvent ]
4242slice _ [] = []
4343slice duration msg_@ (x : _) = go (utcToMicroseconds (tmsgAt x)) msg_ where
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ instance ( Foldable f2
4343r1 <-> r2 = Chain r1 r2
4444
4545-- Explicitly chain reducers with a projection function that extracts a Foldable and
46- -- an initial accumulator value from the first reducer's reult value
46+ -- an initial accumulator value from the first reducer's result value
4747chainWith ::
4848 ( Foldable f1
4949 , Foldable f2
@@ -67,7 +67,7 @@ instance Reducer (HigherOrder a) where
6767 initialOf _ = ([] , Nothing )
6868
6969 reducerOf (Threshold f) = go where
70- -- still in intial state? always use the head of the original sequence as first data point
70+ -- still in initial state? always use the head of the original sequence as first data point
7171 go ([] , _) h = ([h], Just h)
7272 go (acc@ (h: _), _) next
7373 | f h next = (next: acc, Just next)
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ data Graph3D x y z =
197197 -- ^ plots data read from a file, optionally giving indices of which columns to plot as x, y and z
198198
199199-- | Options which can be used with 'plot''
200- data GnuplotOption = Interactive -- ^ keeps gnuplot open, so that you can interact with the plot (only usefull with 'X11')
200+ data GnuplotOption = Interactive -- ^ keeps gnuplot open, so that you can interact with the plot (only useful with 'X11')
201201 | Debug -- ^ keeps intermediate files used to invoke gnuplot, such as the script '_plot.p' and the datafiles '_plot*.dat'.
202202 deriving Eq
203203
You can’t perform that action at this time.
0 commit comments