Skip to content

Commit

Permalink
fix worker info time as cols, not rows
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Oct 10, 2023
1 parent e442c58 commit 0520dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pool.r
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Pool = R6::R6Class("Pool",
info = private$master$list_workers()
times = do.call(rbind, info$time)[,1:3]
mem = function(field) sapply(info$mem, function(m) sum(m[,field] * c(56,1)))
data.frame(worker=info$worker, status=info$status, times,
mem.used=mem("used"), mem.max=mem("max used"))
do.call(data.frame, c(info[c("worker", "status")], as.list(times),
mem.used=mem("used"), mem.max=mem("max used")))
},

add = function(qsys, n, ...) {
Expand Down

0 comments on commit 0520dda

Please sign in to comment.