Fix to avoid those nasty divide by zero errors :-)

This commit is contained in:
rpotts%netscape.com 1999-06-27 11:14:35 +00:00
Родитель 3f3752d83c
Коммит 8efeed5446
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}