Smallcase folders part 2

This commit is contained in:
2025-12-29 13:59:23 +00:00
parent 8bef59f793
commit 37fc8b0cf3
37 changed files with 127 additions and 116 deletions
+5 -3
View File
@@ -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;