Hi, thank you for this very useful content pack.
Could you please tell me how can I have new fields for received bytes and sent bytes in mega bytes or giga bytes?
I tried to write new pipelines for it but every time I get error "incompatible types....double.... long in ...."
rule "ConvertBytesToGigabytes1"
when
has_field("rcvdbyte")
then
let MBytes = to_double($message.rcvdbyte);
set_field("MBytes", MBytes /(1024*1024));
end
Hi, thank you for this very useful content pack. Could you please tell me how can I have new fields for received bytes and sent bytes in mega bytes or giga bytes? I tried to write new pipelines for it but every time I get error "incompatible types....double.... long in ...."
rule "ConvertBytesToGigabytes1" when has_field("rcvdbyte") then let MBytes = to_double($message.rcvdbyte); set_field("MBytes", MBytes /(1024*1024)); end