appsinet / bareos-zabbix

Script and template to monitor backup jobs from Bareos in Zabbix.
Other
7 stars 8 forks source link

Fix Int division error #7

Closed UraniumDonut closed 1 year ago

UraniumDonut commented 1 year ago

JobBytes and ReadBytes are stored as INT in the database. An INT/INT division in SQL will always result in an int. (Thus rounding the result to 0 or 1). This fixes the issue, and results in a fraction value (like 0.83) like it was intended.

cmmata commented 1 year ago

Thanks again!