summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-10 13:56:43 -0400
committerjoe <joe@jerkface.net>2018-06-10 13:56:43 -0400
commit4cb899c4af5e2933c39e295633164321b3420795 (patch)
tree43a5be5002b3efc9ddc9be109c4033aea507d5d5 /examples/dhtd.hs
parentefabb55dfeb6a809f5193b241e490024fbee6f7c (diff)
Tweaks to announce scheduler.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 58a69c6a..d6da567a 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -988,7 +988,8 @@ clientSession s@Session{..} sock cnum h = do
988 as <- readTVar (scheduled $ announcer) 988 as <- readTVar (scheduled $ announcer)
989 forM (PSQ.toList as) $ \(k,ptm,item) -> do 989 forM (PSQ.toList as) $ \(k,ptm,item) -> do
990 kstr <- unpackAnnounceKey announcer k 990 kstr <- unpackAnnounceKey announcer k
991 return [ show (ptm - now) 991 return [ if ptm==0 then "now"
992 else show (ptm - now)
992 , show (itemStatusNum item) 993 , show (itemStatusNum item)
993 , kstr 994 , kstr
994 ] 995 ]