fix bug with lease duration in seconds
fsaintma [Tue, 12 May 2015 11:50:02 +0000 (13:50 +0200)]
sfa/iotlab/iotlabdriver.py

index cc8f6e6..5746fed 100644 (file)
@@ -157,7 +157,7 @@ class IotLabDriver(Driver):
         start_time = min([int(lease['start_time'])
                          for lease in leases])
         end_time = max([int(lease['start_time']) +
-                       int(lease['duration'])
+                       int(lease['duration'])*60
                        for lease in leases])
         nodes_list = [Xrn.unescape(Xrn(lease['component_id'].strip(),
                       type='node').get_leaf())