Commit 800a850b authored by Alessio Netti's avatar Alessio Netti
Browse files

Type of "scale" metadata field changed to double

parent 7de3886e
......@@ -51,7 +51,7 @@ public:
monotonic(false),
publicName(""),
unit(""),
scale(1),
scale(1.0),
ttl(0),
interval(0) {}
......@@ -114,7 +114,7 @@ public:
} else if (boost::iequals(val.first, "publicName")) {
this->publicName = val.second.data();
} else if (boost::iequals(val.first, "scale")) {
this->scale = stoull(val.second.data());
this->scale = stod(val.second.data());
} else if (boost::iequals(val.first, "interval")) {
this->interval = stoull(val.second.data()) * 1000000;
} else if (boost::iequals(val.first, "operations")) {
......@@ -153,7 +153,7 @@ public:
bool monotonic;
string publicName;
string unit;
uint64_t scale;
double scale;
uint64_t ttl;
uint64_t interval;
vector<string> operations;
......
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