summaryrefslogtreecommitdiff
path: root/klm/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-05-28 12:33:16 -0400
committerKenneth Heafield <github@kheafield.com>2012-05-28 12:33:16 -0400
commit7d1a63de4894de55f152bb806c85d42b745b9661 (patch)
treeb8d88676e93b9cf3a227378b8c92f5699a4fa04b /klm/util
parent84b2894b639aa7de689a75dad8077639cbb03879 (diff)
Fix FilePiece and progress
Diffstat (limited to 'klm/util')
-rw-r--r--klm/util/file_piece.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/klm/util/file_piece.cc b/klm/util/file_piece.cc
index 081e662b..a205995a 100644
--- a/klm/util/file_piece.cc
+++ b/klm/util/file_piece.cc
@@ -36,13 +36,13 @@ const bool kSpaces[256] = {0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0
FilePiece::FilePiece(const char *name, std::ostream *show_progress, std::size_t min_buffer) :
file_(OpenReadOrThrow(name)), total_size_(SizeFile(file_.get())), page_(SizePage()),
- progress_(total_size_ == kBadSize ? NULL : show_progress, std::string("Reading ") + name, total_size_) {
+ progress_(total_size_, total_size_ == kBadSize ? NULL : show_progress, std::string("Reading ") + name) {
Initialize(name, show_progress, min_buffer);
}
FilePiece::FilePiece(int fd, const char *name, std::ostream *show_progress, std::size_t min_buffer) :
file_(fd), total_size_(SizeFile(file_.get())), page_(SizePage()),
- progress_(total_size_ == kBadSize ? NULL : show_progress, std::string("Reading ") + name, total_size_) {
+ progress_(total_size_, total_size_ == kBadSize ? NULL : show_progress, std::string("Reading ") + name) {
Initialize(name, show_progress, min_buffer);
}