|
|
@@ -26,6 +26,7 @@
|
|
|
#include "users.h"
|
|
|
#include "chan.h"
|
|
|
#include "core_binds.h"
|
|
|
+#include "egg_timer.h"
|
|
|
|
|
|
static char TBUF[1024] = ""; /* Static buffer for goofy bot stuff */
|
|
|
|
|
|
@@ -749,8 +750,15 @@ static void bot_traced(int idx, char *par)
|
|
|
register char *c=p;
|
|
|
for (; *c != '\0'; c++) if (*c == ':') j++;
|
|
|
}
|
|
|
- dprintf(i, "%s -> %s (%lu secs, %d hop%s)\n", BOT_TRACERESULT, p2,
|
|
|
- now - t, j, (j != 1) ? "s" : "");
|
|
|
+
|
|
|
+ time_t tm;
|
|
|
+ egg_timeval_t tv;
|
|
|
+
|
|
|
+ timer_get_now(&tv);
|
|
|
+ tm = ((tv.sec % 10000) * 100 + (tv.usec * 100) / (1000000)) - t;
|
|
|
+
|
|
|
+ dprintf(i, "%s -> %s (%li.%li secs, %d hop%s)\n", BOT_TRACERESULT, p2,
|
|
|
+ (tm / 100), (tm % 100), j, (j != 1) ? "s" : "");
|
|
|
} else
|
|
|
dprintf(i, "%s -> %s\n", BOT_TRACERESULT, p);
|
|
|
}
|