Skip to content
Snippets Groups Projects
Commit 24c3d43c authored by Danny Auble's avatar Danny Auble
Browse files

set the end time of a job correctly

parent 9bfc818c
No related branches found
No related tags found
No related merge requests found
......@@ -203,8 +203,11 @@ extern int mysql_hourly_rollup(mysql_conn_t *mysql_conn,
if(row_start < curr_start)
row_start = curr_start;
if(!row_end || row_end > curr_end)
row_end = curr_end;
/* if the end isn't in this period set it to
* (curr_end - 1)
*/
if(!row_end || row_end >= curr_end)
row_end = curr_end-1;
/* Don't worry about it if the time is less
* than 1 second.
......@@ -312,8 +315,11 @@ extern int mysql_hourly_rollup(mysql_conn_t *mysql_conn,
if(!row_start && row_end)
row_start = row_end;
if(!row_end || row_end > curr_end)
row_end = curr_end;
/* if the end isn't in this period set it to
* (curr_end - 1)
*/
if(!row_end || row_end >= curr_end)
row_end = curr_end-1;
if(last_id != assoc_id) {
a_usage =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment