Fixed bug causing graph plot points to all be on same default date

Using a MariaDB we found a bug causing all graphs plot points to be placed on the same date regardless of actual date. Seems to be caused by a float instead of the integer value. Simply a round added in the config file to ensure we get a proper value to plot the graph from. 

Bug and fix confirmed on two different invironments and only seems to affect MariaDB setups.