forked from M-Labs/artiq
1
0
Fork 0

coredevice: fix seconds_to_mu rounding

This commit is contained in:
Sébastien Bourdeauducq 2024-08-30 13:47:48 +08:00
parent 016691cee3
commit aec2168974
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class Core:
:param seconds: time (in seconds) to convert. :param seconds: time (in seconds) to convert.
""" """
return int64(seconds//self.ref_period) return round64(seconds/self.ref_period)
@portable @portable
def mu_to_seconds(self, mu: int64) -> float: def mu_to_seconds(self, mu: int64) -> float: