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()