Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var nbhdAvgRx = execution.getVariable("nbhdAvgRx") == null ? Number(0.00)
  2. : Number(execution.getVariable("nbhdAvgRx"));
  3. var nbhdAvgTx = execution.getVariable("nbhdAvgTx") == null ? Number(0.00)
  4. : Number(execution.getVariable("nbhdAvgTx"));
  5.  
  6. if( ontStatus !== null && ontStatus == "Operational") {
  7. if (opticalRx !== null) {
  8. nbhdAvgRx += Number(opticalRx);
  9. }
  10. if (opticalTx !== null) {
  11. nbhdAvgTx += Number(opticalTx);
  12. }
  13. }
  14. execution.setVariable("nbhdAvgTx", nbhdAvgTx);
  15. execution.setVariable("nbhdAvgRx", nbhdAvgRx);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement