mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Client: Add sum and average to packetcounter
This commit is contained in:
parent
a9c3a42323
commit
be38a44ffe
2 changed files with 14 additions and 3 deletions
|
@ -94,11 +94,12 @@ public:
|
|||
m_packets.clear();
|
||||
}
|
||||
|
||||
u32 sum() const;
|
||||
void print(std::ostream &o) const;
|
||||
|
||||
private:
|
||||
// command, count
|
||||
std::map<u16, u16> m_packets;
|
||||
std::map<u16, u32> m_packets;
|
||||
};
|
||||
|
||||
class ClientScripting;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue