xibosignage / xibo

Xibo Digital Signage
https://xibosignage.com
GNU Affero General Public License v3.0
547 stars 160 forks source link

Stocks: Incorrect calculation of Total Duration for elements with Duration Per Item #3441

Closed ifarzana closed 9 hours ago

ifarzana commented 3 weeks ago

The total duration displayed by the application does not match the calculated expected total duration of 15 seconds.

Steps:

Actual result

The Layout total duration shows of 40s

Expected Result:

The total duration should be calculated based on the sum of durations of all items divided by the number of pages (3 pages in this case), i.e., (5×8 ) / 3 = 15 seconds.

Additional Information:

This issue only affects the accuracy of duration calculations with the Stocks widget. Other widgets such as Dataset and Currency are functioning correctly with the Duration Per Item setting.

Reference: An internal CMS with the layout ID 1969 shows the issue in detail.