Skip to content

Commit 076a845

Browse files
committed
Remove decimals from time periods
Since a recent change in Check mk the time interval can only contain integers (No sub-second accuracy). This change removes the milliseconds from the time interval. CMK-15113
1 parent 44e3751 commit 076a845

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/rest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ export default class RestApiBackend implements Backend {
265265
throw 'Query is missing required fields';
266266
}
267267

268+
range.from.set('milliseconds', 0);
269+
range.to.set('milliseconds', 0);
270+
268271
const commonRequest: CommonRequest = {
269272
type: query.requestSpec.graph_type,
270273
time_range: {

0 commit comments

Comments
 (0)