summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-19 14:13:17 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-19 14:13:17 -0700
commitb62296a40bd4ed2d01404679cdc9512a1f18bcca (patch)
tree4a0d32583785537107351f162839bcf9b591c67c /osdep
parent31785f7f6ec27e826efc3cc2b45979e5d58f37bb (diff)
downloadinfinitytier-b62296a40bd4ed2d01404679cdc9512a1f18bcca.tar.gz
infinitytier-b62296a40bd4ed2d01404679cdc9512a1f18bcca.zip
Bug fixes in new harness mode.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/OSUtils.cpp2
-rw-r--r--osdep/OSUtils.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp
index 882b8255..c1edc353 100644
--- a/osdep/OSUtils.cpp
+++ b/osdep/OSUtils.cpp
@@ -434,7 +434,7 @@ std::string OSUtils::platformDefaultHomePath()
// Inline these massive JSON operations in one place only to reduce binary footprint and compile time
nlohmann::json OSUtils::jsonParse(const std::string &buf) { return nlohmann::json::parse(buf.c_str()); }
-std::string OSUtils::jsonDump(const nlohmann::json &j) { return j.dump(1); }
+std::string OSUtils::jsonDump(const nlohmann::json &j,int indentation) { return j.dump(indentation); }
uint64_t OSUtils::jsonInt(const nlohmann::json &jv,const uint64_t dfl)
{
diff --git a/osdep/OSUtils.hpp b/osdep/OSUtils.hpp
index d6f32822..8683ba25 100644
--- a/osdep/OSUtils.hpp
+++ b/osdep/OSUtils.hpp
@@ -276,7 +276,7 @@ public:
static std::string platformDefaultHomePath();
static nlohmann::json jsonParse(const std::string &buf);
- static std::string jsonDump(const nlohmann::json &j);
+ static std::string jsonDump(const nlohmann::json &j,int indentation = 1);
static uint64_t jsonInt(const nlohmann::json &jv,const uint64_t dfl);
static bool jsonBool(const nlohmann::json &jv,const bool dfl);
static std::string jsonString(const nlohmann::json &jv,const char *dfl);