소스 검색

[contrib/lua] Authenticate memory usage request

Lars Gierth 10 년 전
부모
커밋
93fc05f2ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      contrib/lua/cjdns/util.lua

+ 1 - 1
contrib/lua/cjdns/util.lua

@@ -26,7 +26,7 @@ function UtilFunctions:ping()
 end
 
 function UtilFunctions:memory()
-    local response, err = self.ai:call({q = "memory"})
+    local response, err = self.ai:auth({q = "memory"})
     if response and response.bytes then
         return response.bytes
     else