Commit e648bbbf authored by Ilya Prokhorov's avatar Ilya Prokhorov

Stop on first error

parent 24702c50
......@@ -62,6 +62,7 @@ int main(int argc, char **argv) {
if (inputStream.gcount() != blockSize) {
auto currentGB = position / 1024 / 1024 / 1024;
cout << "Can't read at " << currentGB << "GB, bad block?" << endl;
exit(3);
}
auto readTime = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment