mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Fix to avoid those nasty divide by zero errors :-)
This commit is contained in:
parent
7a9792088c
commit
85fffec863
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user