Skip to content

Commit 645f423

Browse files
committed
fixup! Clock: Change implementation of Date to use Ptime.t
1 parent 5900e22 commit 645f423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xapi/xapi_xenops.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,13 +2315,13 @@ let update_vm ~__context id =
23152315
let update_time =
23162316
Db.VM_guest_metrics.get_last_updated ~__context ~self:gm
23172317
in
2318-
if update_time < start_time then (
2318+
if Date.is_earlier update_time ~than:start_time then (
23192319
debug
23202320
"VM %s guest metrics update time (%s) < VM start time \
23212321
(%s): deleting"
23222322
id
23232323
(Date.to_rfc3339 update_time)
2324-
(Date.to_rfc3339 start_time) ;
2324+
start_datetime ;
23252325
Xapi_vm_helpers.delete_guest_metrics ~__context ~self ;
23262326
check_guest_agent ()
23272327
)

0 commit comments

Comments
 (0)