Skip to content

Commit d37131e

Browse files
committed
Fix memory stats
Signed-off-by: Sasha Bogicevic <[email protected]>
1 parent 2d97bdc commit d37131e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hydra-cluster/bench/Bench/EndToEnd.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ withOSStats workDir tvar action =
264264
race
265265
( do
266266
-- Write the header
267-
atomically $ writeTVar tvar [" | Time | Used | Free | ", "|------|------|------|"]
267+
atomically $ writeTVar tvar [" | Time | Used | Free | ", "|------------------------------------|------|------|"]
268268
collectStats tvar out
269269
)
270270
action
271271
>>= \case
272272
Left _ -> failure "dool process failed unexpectedly"
273273
Right a -> pure a
274274
where
275-
process = (proc "dool" ["-cm", "-n", "-N", "lo", "--noheaders", "--noupdate", "5"]){cwd = Just workDir}
275+
process = (proc "dool" ["-m", "--noupdate"]){cwd = Just workDir}
276276

277277
collectStats _ Nothing = pure ()
278278
collectStats tvar' (Just hdl) =
@@ -281,9 +281,9 @@ withOSStats workDir tvar action =
281281

282282
processStat :: TVar IO [Text] -> String -> IO ()
283283
processStat tvar' stat = do
284-
let matches = getAllTextMatches (stat =~ ("[0-9.]+.|([A-Z])" :: String)) :: [String]
284+
let matches = getAllTextMatches (stat =~ ("[0-9.]+([A-Z])" :: String)) :: [String]
285285
case matches of
286-
(_ : _ : _ : _ : _ : memUsed : memFree : _) -> do
286+
(memUsed : memFree : _ : _) -> do
287287
now <- getCurrentTime
288288
let str =
289289
pack $

0 commit comments

Comments
 (0)