From 85fffec863d24798f5dcc40a5e5dd5666d6622dc Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Sun, 27 Jun 1999 11:14:35 +0000 Subject: [PATCH] Fix to avoid those nasty divide by zero errors :-) --- netwerk/test/TestProtocols.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/test/TestProtocols.cpp b/netwerk/test/TestProtocols.cpp index 8bbd6b15784e..d8b673b67e21 100644 --- a/netwerk/test/TestProtocols.cpp +++ b/netwerk/test/TestProtocols.cpp @@ -289,7 +289,7 @@ InputTestConsumer::OnStopBinding(nsISupports* context, printf("\tRead: %d bytes.\n", info->mBytesRead); printf("\tTime to connect: %f seconds\n", (info->mConnectTime/1000UL)/1000.0); printf("\tTime to read: %f seconds.\n", (loadTime/1000UL)/1000.0); - printf("\tThroughput: %d bps.\n", (info->mBytesRead*8)/((loadTime/1000UL)/1000UL)); + printf("\tThroughput: %f bps.\n", (info->mBytesRead*8)/((loadTime/1000UL)/1000.0)); } else { printf("\nFinished loading: UNKNOWN URL. Status Code: %x\n", aStatus); }