got rid of off_t

This commit is contained in:
Jean-Francois Dockes
2017-02-28 20:36:01 +01:00
parent 9a9608e00b
commit bde991c08a
17 changed files with 95 additions and 82 deletions
+2 -1
View File
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <time.h>
#include <stdint.h>
#include <algorithm>
@@ -172,7 +173,7 @@ static string sizegetter(const string& fld, const Rcl::Doc& doc)
if (it == doc.meta.end()) {
return string();
}
off_t size = atoll(it->second.c_str());
int64_t size = atoll(it->second.c_str());
return displayableBytes(size) + " (" + it->second + ")";
}