Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nbhdAvgRx = execution.getVariable("nbhdAvgRx") == null ? Number(0.00)
- : Number(execution.getVariable("nbhdAvgRx"));
- var nbhdAvgTx = execution.getVariable("nbhdAvgTx") == null ? Number(0.00)
- : Number(execution.getVariable("nbhdAvgTx"));
- if( ontStatus !== null && ontStatus == "Operational") {
- if (opticalRx !== null) {
- nbhdAvgRx += Number(opticalRx);
- }
- if (opticalTx !== null) {
- nbhdAvgTx += Number(opticalTx);
- }
- }
- execution.setVariable("nbhdAvgTx", nbhdAvgTx);
- execution.setVariable("nbhdAvgRx", nbhdAvgRx);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement