fix wrong unit in TotalBytes (#9954)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
pull/9961/head
J-N-K 2021-01-25 21:26:01 +01:00 committed by GitHub
parent b4a181a77e
commit c489eef9e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -158,6 +158,8 @@ In this case you have to use the `wifi5GHzEnable` channel for switching the gues
| `wanTotalBytesReceived` | `Number:DataAmount` | x | Total Bytes Received |
| `wanTotalBytesSent` | `Number:DataAmount` | x | Total Bytes Sent |
**Note:** AVM Fritzbox devices use 4-byte-unsigned-integers for `wanTotalBytesReceived` and `wanTotalBytesSent`, because of that the counters are reset after around 4GB data.
## `PHONEBOOK` Profile
The binding provides a profile for using the FritzBox phonebooks for resolving numbers to names.

View File

@ -173,13 +173,13 @@
<getAction name="GetCommonLinkProperties" argument="NewLayer1UpstreamMaxBitRate"/>
</channel>
<channel name="wanTotalBytesReceived" label="Total Bytes Received">
<item type="Number:DataAmount" unit="B" statePattern="%.3f Gio"/>
<item type="Number:DataAmount" unit="B" statePattern="%.3f GB"/>
<service deviceType="urn:dslforum-org:device:WANDevice:1"
serviceId="urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1"/>
<getAction name="GetTotalBytesReceived" argument="NewTotalBytesReceived"/>
</channel>
<channel name="wanTotalBytesSent" label="Total Bytes Sent">
<item type="Number:DataAmount" unit="B" statePattern="%.3f Gio"/>
<item type="Number:DataAmount" unit="B" statePattern="%.3f GB"/>
<service deviceType="urn:dslforum-org:device:WANDevice:1"
serviceId="urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1"/>
<getAction name="GetTotalBytesSent" argument="NewTotalBytesSent"/>