-doxygen
[oweals/gnunet.git] / src / fs / test_fs_download.c
index c069875cfb082322fc8f761630ca92af7383657f..51f05192e0c83092a2a66cb3ae1d373a085241e2 100644 (file)
@@ -139,6 +139,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                (unsigned long long) event->value.publish.specifics.
                progress.offset);
     break;
+  case GNUNET_FS_STATUS_PUBLISH_PROGRESS_DIRECTORY:
+    break;
   case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
     fprintf (stdout,
             "Publishing complete, %llu kb/s.\n",
@@ -146,8 +148,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                                   (1 +
                                    GNUNET_TIME_absolute_get_duration
                                    (start).rel_value_us) / 1024LL));
-    GAUGER ("FS", 
-           (GNUNET_YES == indexed) 
+    GAUGER ("FS",
+           (GNUNET_YES == indexed)
            ? "Publishing speed (indexing)"
             : "Publishing speed (insertion)",
            (unsigned long long) (FILESIZE * 1000000LL /
@@ -160,7 +162,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
         GNUNET_FS_download_start (fs,
                                   event->value.publish.specifics.
                                   completed.chk_uri, NULL, fn, NULL, 0,
-                                  FILESIZE, anonymity_level, 
+                                  FILESIZE, anonymity_level,
                                  GNUNET_FS_DOWNLOAD_OPTION_NONE,
                                   "download", NULL);
     GNUNET_assert (download != NULL);
@@ -173,8 +175,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                                    GNUNET_TIME_absolute_get_duration
                                    (start).rel_value_us) / 1024LL));
     GAUGER ("FS",
-           (GNUNET_YES == indexed) 
-           ? "Local download speed (indexed)"  
+           (GNUNET_YES == indexed)
+           ? "Local download speed (indexed)"
            : "Local download speed (inserted)",
             (unsigned long long) (FILESIZE * 1000000LL /
                                   (1 +