Skip to content
Snippets Groups Projects
Commit 21693d39 authored by Julian Tusch's avatar Julian Tusch :no_entry_sign:
Browse files

fix duration bug

parent c11724aa
No related branches found
No related tags found
1 merge request!68Fluxio preliminary release
Pipeline #22336 passed
......@@ -24,10 +24,10 @@ class Duration(AronDataclass):
return self.microSeconds * 1e-6
def __repr__(self) -> str:
return f"<Duration {self.microseconds} µs>"
return f"<Duration {self.microSeconds} µs>"
def toMilliSeconds(self) -> int:
return int(self.microseconds / 1000)
return int(self.microSeconds / 1000)
def __str__(self) -> str:
unit = "µs"
......
......@@ -156,7 +156,7 @@ class FluxioSkillConv(IceConverter):
id=bo.id,
name=bo.name,
description=bo.description,
timeout=self.duration_conv.to_ice(Duration(microseconds=bo.timeout * 1000)),
timeout=self.duration_conv.to_ice(Duration(microSeconds=bo.timeout * 1000)),
lastChanged=bo.lastChanged,
executable=bo.executable,
native=bo.native,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment