Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/isql/isql.epp
Original file line number Diff line number Diff line change
Expand Up @@ -9957,20 +9957,6 @@ unsigned PerTableStats::loadRelNames(Firebird::IAttachment* att)

/// class IsqlWireStats

IsqlWireStats::IsqlWireStats(Firebird::IAttachment* att) :
m_att(att),
m_snd_packets(0),
m_rcv_packets(0),
m_out_packets(0),
m_in_packets(0),
m_snd_bytes(0),
m_rcv_bytes(0),
m_out_bytes(0),
m_in_bytes(0),
m_roundtrips(0)
{
}

bool IsqlWireStats::get(bool initial)
{
if (!m_att)
Expand Down
22 changes: 12 additions & 10 deletions src/isql/isql.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,23 +314,25 @@ struct IsqlVar
class IsqlWireStats
{
public:
IsqlWireStats(Firebird::IAttachment* att);
IsqlWireStats(Firebird::IAttachment* att) :
m_att(att)
{}

bool print(bool initial);
bool get(bool initial);

private:

Firebird::IAttachment* m_att;
FB_UINT64 m_snd_packets;
FB_UINT64 m_rcv_packets;
FB_UINT64 m_out_packets;
FB_UINT64 m_in_packets;
FB_UINT64 m_snd_bytes;
FB_UINT64 m_rcv_bytes;
FB_UINT64 m_out_bytes;
FB_UINT64 m_in_bytes;
FB_UINT64 m_roundtrips;
FB_UINT64 m_snd_packets = 0;
FB_UINT64 m_rcv_packets = 0;
FB_UINT64 m_out_packets = 0;
FB_UINT64 m_in_packets = 0;
FB_UINT64 m_snd_bytes = 0;
FB_UINT64 m_rcv_bytes = 0;
FB_UINT64 m_out_bytes = 0;
FB_UINT64 m_in_bytes = 0;
FB_UINT64 m_roundtrips = 0;
};

#endif // ISQL_ISQL_H
Loading