ctucx.git: fritzbox-exporter

[nimlang] prometheus exporter for lte fritzboxes

commit 05c65de8e553773ddd61438d9b77955b8669eee5
parent d68d700d68740491a21304c6115bb9f13001a3f9
Author: ctucx <ctucx@git.ctu.cx>
Date: Wed, 12 Feb 2020 23:30:58 +0000

„src/fb_exporter.nim“ ändern
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fb_exporter.nim b/src/fb_exporter.nim
@@ -114,7 +114,7 @@ proc processHttpClient(req: Request) {.async.} =
             if inetstat_data["ThisMonth0"].hasKey("BytesSentHigh") and inetstat_data["ThisMonth0"].hasKey("BytesSentLow"):
               month_transmit = inetstat_data["ThisMonth0"]["BytesSentHigh"].getInt() shl 32 + inetstat_data["ThisMonth0"]["BytesSentLow"].getInt()
             if inetstat_data["ThisMonth0"].hasKey("BytesReceivedHigh") and inetstat_data["ThisMonth0"].hasKey("BytesReceivedLow"):
-              month_receive = inetstat_data["Total0"]["BytesReceivedHigh"].getInt() shl 32 + inetstat_data["Total0"]["BytesReceivedLow"].getInt()
+              month_receive = inetstat_data["ThisMonth0"]["BytesReceivedHigh"].getInt() shl 32 + inetstat_data["ThisMonth0"]["BytesReceivedLow"].getInt()
                          
             #today
             if inetstat_data["Today0"].hasKey("BytesSentHigh") and inetstat_data["Today0"].hasKey("BytesSentLow"):