cptcornflakes / smartcoin

Automatically exported from code.google.com/p/smartcoin
0 stars 0 forks source link

AutoDonate time remaining shows wrong prior to midnight if end time crosses over midnight... #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

offending block of code:
 # Midnight carryover
                        if [[ "$curTime" -ge "$start" ]]; then
                                #ret="true"
                                local minTilMid=$(( 2400 - $curTime ))
                                ret=$(( $minTilMid + $end ))
                        fi

This gives a much higher number than it should, though, after midnight it 
corrects its self.  This effects display only, and has no effect on the 
autodonate feature its self.

Original issue reported on code.google.com by jondecke...@gmail.com on 3 Jul 2011 at 4:03

GoogleCodeExporter commented 9 years ago
this also seems to be a problem if the donation time crosses over any hour.

Original comment by jondecke...@gmail.com on 8 Jul 2011 at 8:52