mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Fixup from core commit
Took 6 minutes Took 5 seconds Took 5 minutes
This commit is contained in:
parent
ad2ff25f1c
commit
2c03ba853f
5 changed files with 26 additions and 23 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <QList>
|
||||
#include <QWidget>
|
||||
#include <libcockatrice/network/client/abstract/latency_tracker.h>
|
||||
|
||||
class QLabel;
|
||||
class LatencyGraphWidget;
|
||||
|
|
@ -29,7 +30,7 @@ public:
|
|||
explicit LatencyStatusWidget(QWidget *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void updateStats(int lastMs, int medianMs, int p95Ms, int maxMs, int sampleCount);
|
||||
void updateStats(const LatencyTracker::Stats &stats);
|
||||
void updateSamples(const QList<int> &samplesMs);
|
||||
|
||||
protected:
|
||||
|
|
@ -37,7 +38,7 @@ protected:
|
|||
|
||||
private:
|
||||
void togglePopup();
|
||||
QString statsText(int lastMs, int medianMs, int p95Ms, int maxMs, int sampleCount) const;
|
||||
QString statsText(const LatencyTracker::Stats &stats) const;
|
||||
|
||||
QLabel *pingLabel = nullptr;
|
||||
LatencyGraphWidget *latencyGraph = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue