eZ Survey 2.0 summary result bug.

Author Message

Pawel Graczyk

Thursday 02 October 2008 3:13:38 am

Hi,

There is a problem which survey2.0.
In administration panel->survey->summary results 'Percentage' column is over/under 100%.
(See the screen under a link: http://fotoo.pl/hosting-zdjec/links/survey20 ).
Does anyone know something about it? Is this error connected with:

- counting values (rounding up/down) (summary is close to 100% usually 99% or 101%)

- deleting survey evaluations (What i did when I've been testing survey)

- anything else I don't know about?

Please let me know if you have any information about this bug.

Radek Kuchta

Thursday 02 October 2008 5:35:31 am

Hi Pawel,

Each value of Percentage for every row is counting:

$percentage = (int) round( ( 100 * $row['count'] ) / $count );
(file extension/ezsurvey/modules/survey/classes/ezsurveymultiplechoice.php)

As you can see, the result is rounded.
This value is transferred to a template .../result/overview/multiplechoice.tpl in your extension.

Good luck!

http://ez.no/certification/verify/272582

Pawel Graczyk

Thursday 02 October 2008 9:16:42 am

Thank You. :)

Piotrek Karaƛ

Thursday 02 October 2008 10:33:18 am

You guys stopped talking accross the desk? ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:05:24
Script start
Timing: Jan 18 2025 16:05:24
Module start 'layout'
Timing: Jan 18 2025 16:05:24
Module start 'content'
Timing: Jan 18 2025 16:05:25
Module end 'content'
Timing: Jan 18 2025 16:05:25
Script end

Main resources:

Total runtime0.6724 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.0313152.6250
Module start 'layout' 0.00590.0034 741.656339.4453
Module start 'content' 0.00920.6615 781.1016588.2734
Module end 'content' 0.67070.0017 1,369.375012.1563
Script end 0.6724  1,381.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5193160.0002
Check MTime0.00140.2140160.0001
Mysql Total
Database connection0.00070.100710.0007
Mysqli_queries0.619292.0906620.0100
Looping result0.00070.1040600.0000
Template Total0.640095.220.3200
Template load0.00230.335420.0011
Template processing0.637794.840420.3189
Template load and register function0.00020.023610.0002
states
state_id_array0.00080.124010.0008
state_identifier_array0.00110.171020.0006
Override
Cache load0.00190.2779270.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071930.0002
Fetch class attribute name0.00090.128960.0001
XML
Image XML parsing0.00110.165530.0004
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00110.1565230.0000
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs