summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project/lua.d')
-rw-r--r--conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
index 21f516a..0295b6d 100644
--- a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
+++ b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
@@ -50,8 +50,6 @@ function _Unit_Converter(source, args, event)
end
event["value"] = value/base
- _lua2c['setSignalValueWrap'](source, event)
-
elseif sourcei>targeti then
local base=1
@@ -60,12 +58,13 @@ function _Unit_Converter(source, args, event)
end
event["value"] = value/base
-
- _lua2c["setSignalValueWrap"](source, event)
-
else
print("No conversion")
end
+
+ print('Converted value is: '.. event['value'] .. args["to"])
+
+ _lua2c['setSignalValueWrap'](source, event)
end
-- Display receive arguments and echo them to caller