Smallcase folders part 2
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "Metrics/Host.h"
|
||||
#include "metrics/Host.h"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cstring>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "Network/Common/Buffer.h"
|
||||
#include "network/common/Buffer.h"
|
||||
|
||||
namespace metrics
|
||||
{
|
||||
@@ -51,6 +51,7 @@ namespace metrics
|
||||
for (const auto &d : disks)
|
||||
{
|
||||
buf.writeString(d.name);
|
||||
buf.writeString(d.path);
|
||||
buf.writeFloat(d.used);
|
||||
buf.writeFloat(d.total);
|
||||
}
|
||||
@@ -91,9 +92,10 @@ namespace metrics
|
||||
for (uint8_t i = 0; i < numDisks; ++i)
|
||||
{
|
||||
std::string name = buf.readString();
|
||||
std::string path = buf.readString();
|
||||
float used = buf.readFloat();
|
||||
float total = buf.readFloat();
|
||||
h.disks.push_back({name, used, total});
|
||||
h.disks.push_back({name, path, used, total});
|
||||
}
|
||||
|
||||
return h;
|
||||
|
||||
Reference in New Issue
Block a user