Browse Source

add: EXEC-META info

micha 5 months ago
parent
commit
e234ebf8fe
1 changed files with 32 additions and 11 deletions
  1. 32 11
      remote/mem.py

+ 32 - 11
remote/mem.py

@@ -22,16 +22,37 @@ delta = start
 
 #exit()
 
-while 1:
-    ch = 141
-    send = 0
-    #cmd="stats items" 
-    x=mc.get("index")#cmd)
-    if x:
-        #print(x)
+def UNIV_INDEX():
+    while 1:
+        ch = 141
+        send = 0
+        #cmd="stats items" 
+        x=mc.get("index")#cmd)
+        if x:
+            #print(x)
+            print()
+            for k,v in x.items():
+                #print(k,v)
+                x=mc.get(k)
+                print(k,v,ch,"=",x[ch-1])
+        time.sleep(.13)
+
+
+def EXEC_META():
+    while 1:
         print()
-        for k,v in x.items():
-            #print(k,v)
+        l = []
+        for nr in range(311,321):
+            k="EXEC-META-"+str(nr)
+            #print(k)
             x=mc.get(k)
-            print(k,v,ch,"=",x[ch-1])
-    time.sleep(.13)
+            if x:
+                #print(k,x)
+                l.append([k,x])
+        for i in l:
+            print(i)
+        time.sleep(0.5)
+if __name__ == "__main__":
+    #UNIV_INDEX()
+    EXEC_META()
+