Description
I'm having troubles with cardpeek tachograph as it uses integer values as floats.
For example this piece of code:
local format = "ISO-8859-"..data[0]
makes format be "ISO-8859-1.0" instead "ISO-8859-1"
I don't know about lua so I searched to see if there is a way to default to integer values but it seems that it should do automatically as 1.0 could be represented as 1.
The same issue remains for the time for example here:
local sub_node = node:append({ classname='record',
label='Change',
id=string.format("%02u:%02u",time/60,time%60),
val=data,
size=2 })
time/60 is not integer and it does fail.
I have added math.floor() where applicable but I suppose there should be an easier way to do it I can't find.
I have diff over an xml generated with the windows version and there are a lot of numbers in the fedora output with .0 that doesn't appear over the windows output.