From 11720bcf3d02a9495890ae4eb094cb1bfc8065b3 Mon Sep 17 00:00:00 2001
From: Nikopol <itsnikopol@ya.ru>
Date: Sun, 26 Jan 2025 14:47:52 +0400
Subject: [PATCH] Fix Extractor

---
 BlockyGrapher.py | 6 +++---
 README.md        | 9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/BlockyGrapher.py b/BlockyGrapher.py
index 076a100..44f5044 100644
--- a/BlockyGrapher.py
+++ b/BlockyGrapher.py
@@ -148,7 +148,7 @@ def extractor(prev, flaunch, url):
             i += 1
         i += 1
         while True:
-            if data[i] == "# HELP blocky_request_duration_ms Request duration distribution":
+            if data[i] == "# HELP blocky_request_duration_seconds Request duration distribution":
                 break
             else:
                 count += int(re.sub('blocky_query_total{.*?} ', '', data[i]))
@@ -295,8 +295,8 @@ def cliout(data, code):
     print(f"[{codes}] [{time}] {data}")
 
 def main():
-    cliout("Blocky Graph Monitor for OLED v0.9b", 0)
-    cliout("Nikopol 2024", 0)
+    cliout("Blocky Graph Monitor for OLED v0.91b", 0)
+    cliout("Nikopol 2025", 0)
     cliout("Init...", 0)
 
     # vars spagetti
diff --git a/README.md b/README.md
index 525b0cb..979b08e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-# BlockyGrapher v0.9b
+# BlockyGrapher v0.91b
 ![Example setup using this software](./images/displaydemo.jpg)
-Physical display query grapher for Blocky DNS Server.
+Physical display query grapher for Blocky DNS Server (v0.25). 
 
 I2C SSD1306 Displays with resolution 128x64 and 128x32 are supported.
 Note that this software in beta, and akward bugs may occur.
@@ -60,8 +60,9 @@ extraargs=net.ifnames=0
 docker_optimizations=off
 overlay_path=allwinner
 overlay_prefix=sun50i-h616
-# We need to insert hardware I2C name in overlays. In case of Orange PI Zero 3 this is i2c3. 
-overlays=i2c3
+# We need to insert hardware I2C name in overlays. In case of Orange PI Zero 3 this is i2c3-ph.
+# You can find overlays in /boot/dtb/allwinner/overlay/ or similar folder.
+overlays=i2c3-ph
 user_overlays=
 ```
 Save and reboot.