PerfectlySoft / Perfect-HTTP

Base HTTP Support for Perfect.
https://www.perfect.org
Apache License 2.0
31 stars 34 forks source link

fixed seconds vs minutes bug #5

Closed jeffreybergier closed 8 years ago

jeffreybergier commented 8 years ago

the ENUM described . relativeSeconds(Int) and absoluteSeconds(Int) but then in the case statement, both were being multiplied by 60, turning them into minutes. I removed the multiplication.

An alternative option is to change the ENUM to .relativeMinutes. But thats a bit odd and not very compatible with integers because chances are, developers will want second level precision.

We should consider changing this to Double because thats how NSTimeInterval represents seconds.