gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet-nim] branch master updated: added date and time str


From: gnunet
Subject: [GNUnet-SVN] [gnunet-nim] branch master updated: added date and time string to output
Date: Sat, 11 Aug 2018 09:48:34 +0200

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet-nim.

The following commit(s) were added to refs/heads/master by this push:
     new 88d96e8  added date and time string to output
88d96e8 is described below

commit 88d96e84d9824fde3f0c9a765a3e28ef6ebc7b7e
Author: t3sserakt <address@hidden>
AuthorDate: Sat Aug 11 09:44:18 2018 +0200

    added date and time string to output
---
 examples/groupchat.nim | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/groupchat.nim b/examples/groupchat.nim
index ffc7771..26f9848 100644
--- a/examples/groupchat.nim
+++ b/examples/groupchat.nim
@@ -1,5 +1,5 @@
 import ../gnunet_application, ../asynccadet, ../gnunet_utils
-import asyncdispatch, asyncfile, parseopt, strutils, sequtils
+import asyncdispatch, asyncfile, parseopt, strutils, sequtils, times, os
 
 type Chat = object
   channels: seq[ref CadetChannel]
@@ -8,7 +8,7 @@ proc publish(chat: ref Chat, message: string, sender: ref 
CadetChannel = nil) =
   let message =
     if sender.isNil(): message.strip(leading = false)
     else: "[" & sender.peer.peerId() & "] " & message.strip(leading = false)
-  echo message
+  echo getDatestr(), " ", getClockStr(), " ", message
   for c in chat.channels:
     c.sendMessage(message)
 
@@ -34,7 +34,7 @@ proc processServerMessages(channel: ref CadetChannel) 
{.async.} =
       let (hasData, message) = messageFuture.read()
       if not hasData:
         break
-      echo message
+      echo getDateStr()," ",getClockStr()," ",message
       messageFuture = channel.messages.read()
 
 proc firstTask(gnunetApp: ref GnunetApplication,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]