Skip to content

Commit

Permalink
Change formatting in resource log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfeil committed May 26, 2016
1 parent 1f47f2c commit bb3ef36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/toil/batchSystems/mesos/batchSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def resourceOffers(self, driver, offers):
runnableTasks = []
# TODO: In an offer, can there ever be more than one resource with the same name?
offerCores, offerMemory, offerDisk = self._determineOfferResources(offer)
log.debug('Received offer %s with %i MiB memory, %i core(s) and %i MiB of disk.',
log.debug('Received offer %s with %.2f MiB memory, %.2f core(s) and %.2f MiB of disk.',
offer.id.value, offerMemory, offerCores, offerDisk)
remainingCores = offerCores
remainingMemory = offerMemory
Expand Down
2 changes: 1 addition & 1 deletion src/toil/leader.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def issueJob(self, jobStoreID, memory, cores, disk, preemptable):
jobBatchSystemID = self.batchSystem.issueBatchJob(jobCommand, memory, cores, disk, preemptable)
self.jobBatchSystemIDToIssuedJob[jobBatchSystemID] = IssuedJob(jobStoreID, memory, cores, disk, preemptable)
logger.debug("Issued job with job store ID: %s and job batch system ID: "
"%s and cores: %i, disk: %i, and memory: %i",
"%s and cores: %.2f, disk: %.2f, and memory: %.2f",
jobStoreID, str(jobBatchSystemID), cores, disk, memory)

def issueJobs(self, jobs):
Expand Down

0 comments on commit bb3ef36

Please sign in to comment.