You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Thank you :)
The text was updated successfully, but these errors were encountered:
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 :)
The text was updated successfully, but these errors were encountered: