The fix requires more data. Where is poll_total counted? Maybe it needs to count one per voter instead of one per option. Either that, or there might be another variable called something like voter_total. I'd need to hunt around in various parts of the polling code to suggest the best way to fix it.alietr wrote:I believe this is the code that calculates the percentages. If someone who knows code better than me is able to figure out how to get the percentages to calculate like they used to, I will implement the change. Thanks for any help!
Code: Select all
foreach ($poll_info as $poll_option) { $option_pct = ($poll_total > 0) ? $poll_option['poll_option_total'] / $poll_total : 0; $option_pct_txt = sprintf("%.1d%%", round($option_pct * 100)); ... ); }
FJs for the 6/27/11 week
Moderators: alietr, trainman, econgator, dhkendall
- Uncle Jeff
- Resident phpBB Programmer
- Posts: 132
- Joined: Tue Jul 12, 2011 12:09 pm
- Location: Vancouver, WA
- Contact:
Re: FJs for the 6/27/11 week
In a free society, the most local level of government is the individual citizen
- Volante
- Harbinger of the Doomed Lemur
- Posts: 9267
- Joined: Thu Jul 14, 2011 11:42 pm
Re: FJs for the 6/27/11 week
Grr...28th not up on the Archive yet, DVR failed to record it, I was hoping I'd've gotten it right so I'd have a 17 straight FJs...but no...down to 12 straight now.
The best thing that Neil Armstrong ever did, was to let us all imagine we were him.
Latest movies (1-10): An Autumn Afternoon (7), Europa Europa (7), Tampopo (9), Baby Doll (6)
Latest movies (1-10): An Autumn Afternoon (7), Europa Europa (7), Tampopo (9), Baby Doll (6)
-
- Watches Jeopardy! Way Too Much
- Posts: 466
- Joined: Mon Jul 18, 2011 11:04 am
Re: FJs for the 6/27/11 week
Jane Austen was an instaget on Friday. Unfortunately, I convinced myself to change to George Eliot before the music ended.
- cinemaniax7
- Humble Pi
- Posts: 1605
- Joined: Mon Jul 25, 2011 2:04 pm
- Location: Old Hickory, TN