mirror of https://github.com/voidlizard/hbs2
probes fix
This commit is contained in:
parent
5e997acc59
commit
cf5f5cdc57
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue