From 55bef3ed3048a1ca178531363aba358119064e68 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Wed, 20 Nov 2024 15:14:31 +0100 Subject: [PATCH] update time --- deevirt_schema/libvirt/dom/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deevirt_schema/libvirt/dom/stats.py b/deevirt_schema/libvirt/dom/stats.py index d08f8b5..dd5e662 100644 --- a/deevirt_schema/libvirt/dom/stats.py +++ b/deevirt_schema/libvirt/dom/stats.py @@ -1,7 +1,7 @@ import datetime from typing import List, Optional from pydantic import UUID4, BaseModel, ConfigDict, Field -from time import time +from time import time_ns class CPU(BaseModel): model_config = ConfigDict() @@ -51,7 +51,7 @@ class Interface(BaseModel): tx:InterfaceFlows = Field() class Stats(BaseModel): - current_time:int = Field(default_factory=time) + current_time:int = Field(default_factory=time_ns) interval:int = Field() company_id:UUID4 = Field() datacenter_id:UUID4 = Field()