From 48ef3a753ff66cbc412793c9c1f569a925a83080 Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Mon, 2 Jul 2018 11:20:14 +0200 Subject: [PATCH 1/2] gitignore added --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fdc2681 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +MegaFuse + From 80ff65eee1f64bf2a1c602a4fc9fa9fdc07bf5af Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Mon, 2 Jul 2018 11:20:29 +0200 Subject: [PATCH 2/2] fixed build on debian stretch --- src/file_cache_row.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/file_cache_row.cpp b/src/file_cache_row.cpp index 4d0e096..a299272 100644 --- a/src/file_cache_row.cpp +++ b/src/file_cache_row.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -69,7 +70,7 @@ int CacheManager::numChunks(size_t pos) end +=i*ChunkedHash::SEGSIZE; if(end >= pos) return i; } - return 8 + ceil(float(pos-end)/(8.0*ChunkedHash::SEGSIZE)); + return 8 + std::ceil(float(pos-end)/(8.0*ChunkedHash::SEGSIZE)); }