Reduce padding in structure

Log::Msg originally takes 32 bytes, now shrinks to 24 bytes.
Log::Peer originally takes 40 bytes, now shrinks to 32 bytes.
This commit is contained in:
Chocobo1
2020-04-15 14:00:01 +08:00
parent 2681093d27
commit 648d44d9b9
2 changed files with 4 additions and 4 deletions

View File

@@ -53,17 +53,17 @@ namespace Log
struct Msg
{
int id;
qint64 timestamp;
MsgType type;
qint64 timestamp;
QString message;
};
struct Peer
{
int id;
bool blocked;
qint64 timestamp;
QString ip;
bool blocked;
QString reason;
};
}