Page 1 of 1

Electric power pole bug?

Posted: Tue Mar 22, 2016 4:11 am
by Ghoulish
When you drop a power pole (any type, even sub stations) The tool tip shows electric demand satisfaction as green, even when the poles aren't connected to the main grid.

Image

Re: Electric power pole bug?

Posted: Tue Mar 22, 2016 4:58 am
by Rseding91
Is that a bug though? A demand of 0 with a production of 0 is 100% satisfied.

Re: Electric power pole bug?

Posted: Tue Mar 22, 2016 12:16 pm
by Ghoulish
Makes perfect sense.

Wouldn't it be better though for the tool tip to say 'Disconnected from power source' or similar?

Re: Electric power pole bug?

Posted: Tue Mar 22, 2016 12:21 pm
by sillyfly
Actually, 0/0 is not defined, so there is a case to be made that 100% satisfaction is incorrect.
Can the bar show NaN? :D

Edit: Assuming

Code: Select all

satisfaction = min(1, production / demand)

Re: Electric power pole bug?

Posted: Fri May 27, 2016 8:25 pm
by sparr
I, too, would prefer if 0/0 showed as something other than 100%.