mirror of https://github.com/voidlizard/hbs2
probes fix
This commit is contained in:
parent
3a63c802df
commit
fe4f8946f8
|
@ -249,7 +249,8 @@ instance Probe SimpleProbe where
|
||||||
t <- liftIO getPOSIXTime <&> round
|
t <- liftIO getPOSIXTime <&> round
|
||||||
atomically do
|
atomically do
|
||||||
writeTVar spTimestamp t
|
writeTVar spTimestamp t
|
||||||
modifyTVar spProbeValues (<> HM.fromList values)
|
old <- readTVar spProbeValues
|
||||||
|
writeTVar spProbeValues (HM.fromList values <> old)
|
||||||
|
|
||||||
|
|
||||||
dontHandle :: Applicative f => a -> f ()
|
dontHandle :: Applicative f => a -> f ()
|
||||||
|
|
Loading…
Reference in New Issue