Changeset 26397


Ignore:
Timestamp:
08/13/21 15:02:06 (4 years ago)
Author:
schlegel
Message:

CHG: cast time to int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/discover.py

    r26344 r26397  
    135135        fid.write('#SBATCH -n {} \n'.format(self.nprocs()))
    136136        fid.write('#SBATCH -N {} \n'.format(self.numnodes))
    137         fid.write('#SBATCH -t {:02d}:{:02d}:00 \n'.format(floor(self.time / 3600), floor(self.time % 3600) / 60))
     137        fid.write('#SBATCH -t {:02d}:{:02d}:00 \n'.format(int(floor(self.time / 3600)), int(floor(self.time % 3600) / 60)))
    138138        fid.write('#SBATCH -A {} \n\n'.format(self.grouplist))
    139139        if (self.email.find('@')>-1):
Note: See TracChangeset for help on using the changeset viewer.