demandchain/galaxy-client — pull request #46 by ao140505 (2012-11-03 03:46:06+00:00)
Title: fix bug: time_left is in the deal json, this screws it up

This got messed up when Zac did the big consolidation thing. `time_left` is in the deal json and returns the seconds that are left before the deal expires (as a float).

This method clobbers it with a value this is going to be negative for deals that have not ended (the subtraction is backwards).

I'm not sure where this came from. @zghorn did you just write this ad hoc?

This is what messes up the deal time on chameleon; it would also mess up any other consumer app.