Rewriting it with proper style:
```
sum=0
node[:ipaddress].split(".").each {|p| sum += p.to_i};
fudgevalue = 14 - (sum % 9)
```
FWIW, it's debatable whether we really need a sum. I think just picking the last part of the ip address would be good enough:
```
pseudo_unique = node[:ipaddress].split(".").last
fudgevalue = 14 - (pseudo_unique % 9)
```