summaryrefslogtreecommitdiffhomepage
path: root/Role/Watcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Role/Watcher.hs')
-rw-r--r--Role/Watcher.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Role/Watcher.hs b/Role/Watcher.hs
index c13234f..1ca0ae7 100644
--- a/Role/Watcher.hs
+++ b/Role/Watcher.hs
@@ -5,10 +5,11 @@ import Log
import Pty
import CmdLine
import SessionID
+import Role.Developer (run', processSessionStart, getServerMessage, emitOutput)
import Control.Concurrent.STM
import Control.Concurrent.STM.TMChan
-import Role.Developer (run', processSessionStart, getServerMessage, emitOutput)
+import Data.Time.Clock.POSIX
run :: WatchOpts -> IO ()
run = run' watcher . watchUrl
@@ -20,7 +21,8 @@ watcher _ichan ochan _ = inRawMode $ do
go st
where
go st = do
- v <- atomically $ getServerMessage ochan st
+ ts <- getPOSIXTime
+ v <- atomically $ getServerMessage ochan st ts
case v of
Nothing -> return ()
Just (o, _msg) -> do