I designed the pipeline to calculate the download speed basic on size and time. The function is fine. However, I want to the speed_kb_sec can change to integer(No decimal point). Can you have any solution about it?
My pipeline is listed in the below:
when has_field("spendtime") then let time = to_double($message.spendtime); let size = to_double($message.bytes); let bandwidth = size / time ; let bandwidth_kb = to_double(bandwidth / 1024.0); set_field("speed_bytes_sec", bandwidth); set_field("speed_kb_sec", bandwidth_kb); end
I want to change speed_kb_sec:1064