gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8996 - GNUnet/src/applications/dhtlog_mysql


From: gnunet
Subject: [GNUnet-SVN] r8996 - GNUnet/src/applications/dhtlog_mysql
Date: Mon, 14 Sep 2009 13:14:17 -0600

Author: nevans
Date: 2009-09-14 13:14:16 -0600 (Mon, 14 Sep 2009)
New Revision: 8996

Modified:
   GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
   GNUnet/src/applications/dhtlog_mysql/dhtlog_test.c
Log:
logging fixes

Modified: GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
===================================================================
--- GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-09-14 18:52:14 UTC 
(rev 8995)
+++ GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-09-14 19:14:16 UTC 
(rev 8996)
@@ -69,7 +69,7 @@
                           "VALUES (?, ?, ?)"
 static struct GNUNET_MysqlStatementHandle *insert_dhtkey;
 
-#define UPDATE_TRIALS_STMT "UPDATE trials set endtime=NOW(), 
totalMessagesDropped = ?, totalBytesDropped = ?, unknownPeers = ?, where 
trialuid = ?"
+#define UPDATE_TRIALS_STMT "UPDATE trials set endtime=NOW(), 
totalMessagesDropped = ?, totalBytesDropped = ?, unknownPeers = ? where 
trialuid = ?"
 static struct GNUNET_MysqlStatementHandle *update_trial;
 
 #define UPDATE_CONNECTIONS_STMT "UPDATE trials set totalConnections = ? where 
trialuid = ?"
@@ -285,7 +285,7 @@
                                                   MYSQL_TYPE_LONG,
                                                   &malicious_droppers,
                                                   GNUNET_YES,
-                                                  MYSQL_TYPE_LONG,
+                                                  MYSQL_TYPE_LONGLONG,
                                                   &maxnetbps,
                                                   GNUNET_YES,
                                                   MYSQL_TYPE_BLOB,

Modified: GNUnet/src/applications/dhtlog_mysql/dhtlog_test.c
===================================================================
--- GNUnet/src/applications/dhtlog_mysql/dhtlog_test.c  2009-09-14 18:52:14 UTC 
(rev 8995)
+++ GNUnet/src/applications/dhtlog_mysql/dhtlog_test.c  2009-09-14 19:14:16 UTC 
(rev 8996)
@@ -54,7 +54,7 @@
   unsigned long long nodeuid = 0;
   unsigned long long internaluid = 1010223344;
   unsigned long long dhtkeyuid = 0;
-
+       unsigned long long bps = 10000000000000000;
   memset (&p1.hashPubKey, 3, sizeof (GNUNET_HashCode));
   memset (&p2.hashPubKey, 4, sizeof (GNUNET_HashCode));
   memset (&p3.hashPubKey, 5, sizeof (GNUNET_HashCode));
@@ -64,7 +64,7 @@
   memset (&k2, 1, sizeof (GNUNET_HashCode));
 
   ret =
-    api->insert_trial (&trialuid, i, 5, .75, .25, 0, 0, 0, 0, 0, 0, 0, 0, "");
+    api->insert_trial (&trialuid, i, 5, .75, .25, 0, 0, 0, 0, 0, 0, 0, 0, bps, 
"");
   fprintf (stderr, "Trial uid is %llu\n", trialuid);
 
   if (ret != GNUNET_OK)
@@ -111,7 +111,7 @@
 
   sleep (1);
   fprintf (stderr, "Updating trial %llu with endtime of now\n", trialuid);
-  ret = api->update_trial (trialuid, 0, 0);
+  ret = api->update_trial (trialuid, 0, 0, 0);
 
   if (ret != GNUNET_OK)
     {





reply via email to

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