From 395ac5349703c65c810f2aacbcd2d68bb31a0214 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 7 Aug 2013 18:30:58 +0200 Subject: [PATCH] Fixed last_mod --- src/rest/api/api_printer.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index b04051d..fe95b9e 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -164,9 +164,6 @@ function M.temperature(request, response) -- T:204.5 E:0 W:? if(hotend == nil) then local hotend = tempText:match('T:([%d%.]*).*') - log:debug(" >hotend: ") - log:debug(hotend) - response:addData('hotend', hotend) else response:addData('hotend', hotend) @@ -178,6 +175,7 @@ function M.temperature(request, response) -- get last modified time local file_attr = lfs.attributes(ultipath .. '/' .. TEMPERATURE_FILE) local last_mod = file_attr.modification + local last_mod = os.difftime (os.time(),last_mod) response:addData('last_mod', last_mod) end