diff options
| author | Brenton Bostick <[email protected]> | 2023-05-03 14:18:04 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-03 11:18:04 -0700 |
| commit | a43048a1ad205ab3dd3d7973eb0f7d4488e1d973 (patch) | |
| tree | bab6ca4bb213782cb63058d03b2144993b800417 /node | |
| parent | d6c5a6cd59e48790012bf1c38b16bfcaf2927f00 (diff) | |
fix type signatures (#1991)
Diffstat (limited to 'node')
| -rw-r--r-- | node/Path.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index d7a40dbc..31d8e60d 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -303,48 +303,48 @@ public: /** * @return Mean latency as reported by the bonding layer */ - inline unsigned int latencyMean() const { return _latencyMean; } + inline float latencyMean() const { return _latencyMean; } /** * @return Latency variance as reported by the bonding layer */ - inline unsigned int latencyVariance() const { return _latencyVariance; } + inline float latencyVariance() const { return _latencyVariance; } /** * @return Packet Loss Ratio as reported by the bonding layer */ - inline unsigned int packetLossRatio() const { return _packetLossRatio; } + inline float packetLossRatio() const { return _packetLossRatio; } /** * @return Packet Error Ratio as reported by the bonding layer */ - inline unsigned int packetErrorRatio() const { return _packetErrorRatio; } + inline float packetErrorRatio() const { return _packetErrorRatio; } /** * @return Whether this path is valid as reported by the bonding layer. The bonding layer * actually checks with Phy to see if the interface is still up */ - inline unsigned int valid() const { return _valid; } + inline bool valid() const { return _valid; } /** * @return Whether this path is eligible for use in a bond as reported by the bonding layer */ - inline unsigned int eligible() const { return _eligible; } + inline bool eligible() const { return _eligible; } /** * @return Whether this path is bonded as reported by the bonding layer */ - inline unsigned int bonded() const { return _bonded; } + inline bool bonded() const { return _bonded; } /** * @return Whether the user-specified MTU for this path (determined by MTU for parent link) */ - inline unsigned int mtu() const { return _mtu; } + inline uint16_t mtu() const { return _mtu; } /** * @return Given link capacity as reported by the bonding layer */ - inline unsigned int givenLinkSpeed() const { return _givenLinkSpeed; } + inline uint32_t givenLinkSpeed() const { return _givenLinkSpeed; } /** * @return Path's quality as reported by the bonding layer |
