]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix 'ns' -> 'us' in trace messages
authorViktor Szakats <commit@vsz.me>
Fri, 26 Jun 2026 21:40:24 +0000 (23:40 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 26 Jun 2026 22:26:36 +0000 (00:26 +0200)
Closes #22200

lib/curl_trc.c
lib/multi.c
lib/progress.c

index 792f4ed603c2ae1493f0f36ac4c5e7d5c032ebf2..87082f031bc850dcecb0435672962f058e78f7b6 100644 (file)
@@ -345,7 +345,7 @@ void Curl_trc_easy_timers(struct Curl_easy *data)
       while(e) {
         struct time_node *n = Curl_node_elem(e);
         e = Curl_node_next(e);
-        CURL_TRC_TIMER(data, n->eid, "expires in %" FMT_TIMEDIFF_T "ns",
+        CURL_TRC_TIMER(data, n->eid, "expires in %" FMT_TIMEDIFF_T "us",
                        curlx_ptimediff_us(&n->time, pnow));
       }
     }
index 51b0917ce781d89882ab11e025ea39da6f2f5c85..d65c48e2657b16c6a71226e00fc177133136c234 100644 (file)
@@ -3704,7 +3704,7 @@ static CURLMcode multi_addtimeout(struct Curl_easy *data,
      this is the first timeout on the list */
 
   Curl_llist_insert_next(timeoutlist, prev, node, &node->list);
-  CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "ns",
+  CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "us",
                  curlx_ptimediff_us(&node->time, Curl_pgrs_now(data)));
   return CURLM_OK;
 }
index 969b29a275cab039d684754ba3f96dc287a4cd88..3b3642b9a0b697dbb60b90eb39fc9369b529ffe3 100644 (file)
@@ -337,7 +337,7 @@ void Curl_pgrsTimeWas(struct Curl_easy *data, timerid timer,
     if(us < 1)
       us = 1; /* make sure at least one microsecond passed */
     *delta += us;
-    CURL_TRC_M(data, "[%s] added %" FMT_TIMEDIFF_T "ns",
+    CURL_TRC_M(data, "[%s] added %" FMT_TIMEDIFF_T "us",
                pgrs_timer_name(timer), us);
   }
   else