When importing long list of small documents, mongoimportjson can crash with a Floating point exception. This is due to the progress rate calculation : when the document are small, the import can be fast to enough to get 10000 written under the second, resulting in a a division by zero.
Provided patch to skip progress rate calculation when time difference is zero.