]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Deal with float input in MemRepr
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Mar 2024 13:13:01 +0000 (14:13 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Mar 2024 13:13:01 +0000 (14:13 +0100)
src/Container/SALOME_ContainerHelper.py

index ab42a5f0114bf44a1f30b774d8db394b92bdc4e9..70bd9d6f6a8ffb6635c088e04306d3e3034d04f9 100644 (file)
@@ -34,7 +34,7 @@ class ScriptExecInfo:
     
     @classmethod
     def MemRepr(cls,memInByte):
-      m = memInByte
+      m = int( memInByte )
       UNITS=["B","kB","MB","GB"]
       remain = 0
       oss = ""