diff options
author | joe <joe@jerkface.net> | 2018-06-10 13:56:43 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-10 13:56:43 -0400 |
commit | 4cb899c4af5e2933c39e295633164321b3420795 (patch) | |
tree | 43a5be5002b3efc9ddc9be109c4033aea507d5d5 /examples/dhtd.hs | |
parent | efabb55dfeb6a809f5193b241e490024fbee6f7c (diff) |
Tweaks to announce scheduler.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 3 |
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 | ] |