瀏覽代碼

fix type signatures (#1991)

Brenton Bostick 2 年之前
父節點
當前提交
a43048a1ad
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      node/Path.hpp

+ 9 - 9
node/Path.hpp

@@ -303,48 +303,48 @@ public:
 	/**
 	/**
 	 * @return Mean latency as reported by the bonding layer
 	 * @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
 	 * @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
 	 * @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
 	 * @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
 	 * @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
 	 * 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
 	 * @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
 	 * @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)
 	 * @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
 	 * @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
 	 * @return Path's quality as reported by the bonding layer