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

Bug#418548: more debbug data



  Please try this patch (works for me, amd64 debian sid):

--- apt-spy-3.1/benchmark.c     2007-08-26 03:54:21.000000000 +0100
+++ benchmark.c 2007-08-26 03:47:22.000000000 +0100
@@ -23,6 +23,7 @@
 
        printf("\nSERVER:\t%s\n", current->hostname);
 
+        curl_global_init (CURL_GLOBAL_ALL); 
        /* We use libcurl - here we setup some global options */
        curl = curl_easy_init();
 
@@ -60,12 +61,15 @@
                printf("Benchmarking FTP...\n");
                get_file(current, curl, file, FTP, &total_bytes);
        }
-
-       /* Test for an HTTP entry */
-       if (strlen(current->path[HTTP]) != 0) {
+        /* Test for an HTTP entry */
+       else if (strlen(current->path[HTTP]) != 0) {
                printf("Benchmarking HTTP...\n");
                get_file(current, curl, file, HTTP, &total_bytes);
        }
+        else
+          {
+            printf("UNKNOWN TYPE\n");
+          }
 
        curl_easy_cleanup(curl);
 

Steve
-- 
# Commercial Debian GNU/Linux Support
http://www.linux-administration.org/




Reply to: