probes fix

This commit is contained in:
voidlizard 2024-11-01 06:26:04 +03:00
parent 5e997acc59
commit cf5f5cdc57
1 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,8 @@ instance Probe SimpleProbe where
t <- liftIO getPOSIXTime <&> round
atomically do
writeTVar spTimestamp t
modifyTVar spProbeValues (<> HM.fromList values)
old <- readTVar spProbeValues
writeTVar spProbeValues (HM.fromList values <> old)
dontHandle :: Applicative f => a -> f ()