gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16363 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r16363 - gnunet/src/fs
Date: Thu, 4 Aug 2011 12:52:24 +0200

Author: grothoff
Date: 2011-08-04 12:52:24 +0200 (Thu, 04 Aug 2011)
New Revision: 16363

Modified:
   gnunet/src/fs/gnunet-service-fs_pr.c
Log:
fixnpe

Modified: gnunet/src/fs/gnunet-service-fs_pr.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_pr.c        2011-08-04 10:03:15 UTC (rev 
16362)
+++ gnunet/src/fs/gnunet-service-fs_pr.c        2011-08-04 10:52:24 UTC (rev 
16363)
@@ -997,8 +997,9 @@
     }
   GNUNET_free (pmc);
   /* FIXME: should we really update the load value on failure? */
-  GNUNET_LOAD_update (datastore_put_load,
-                     delay.rel_value);
+  if (NULL != datastore_put_load)
+    GNUNET_LOAD_update (datastore_put_load,
+                       delay.rel_value);
   if (GNUNET_OK == success)
     return;
   GNUNET_STATISTICS_update (GSF_stats,
@@ -1021,6 +1022,8 @@
 {
   double ld;
 
+  if (NULL == datastore_put_load)
+    return GNUNET_NO;
   if (GNUNET_LOAD_get_average (datastore_put_load) < 50)
     return GNUNET_NO; /* very fast */
   ld = GNUNET_LOAD_get_load (datastore_put_load);




reply via email to

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