Hi!
I ran into an issue regarding packet parsing when using "getJobStatus" function.
I found out that I get wrong 'den' value on using "getJobStatus" function.
I also discovered that by changing parse pattern from "ssss8" to "sssss" fixes this issue.
Was there any particular reason to have last data segment in packet parsed as 8-bit unsigned big-endian?
Here is the code snippet of parse call for STATUS_RES packet type. Changing 'ssss8' to 'sssss' gives me correct den value:
if packet.type is packet_types.STATUS_RES
result = @_parsePacket packet.inputData, 'ssss8'
result = { handle : result[0], known: result[1], running: result[2], percent_done_num: result[3], percent_done_den: result[4] }
@emit 'STATUS_RES', result
return
Hi! I ran into an issue regarding packet parsing when using "getJobStatus" function. I found out that I get wrong 'den' value on using "getJobStatus" function. I also discovered that by changing parse pattern from "ssss8" to "sssss" fixes this issue. Was there any particular reason to have last data segment in packet parsed as 8-bit unsigned big-endian?
Here is the code snippet of parse call for STATUS_RES packet type. Changing 'ssss8' to 'sssss' gives me correct den value:
Thank you :)