Skip to content

Commit

Permalink
Merge pull request #5866 from grondo/drain-round-timestamp
Browse files Browse the repository at this point in the history
resource: round timestamp of drained ranks
  • Loading branch information
mergify[bot] committed Apr 8, 2024
2 parents 42fdaaa + 52e9d0d commit 942c5cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/resource/drain.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "config.h"
#endif
#include <time.h>
#include <math.h>
#include <flux/core.h>
#include <jansson.h>

Expand Down Expand Up @@ -281,7 +282,7 @@ json_t *drain_get_info (struct drain *drain)
if (drain->info[rank].drained) {
if (drainset_drain_rank (ds,
rank,
drain->info[rank].timestamp,
round(drain->info[rank].timestamp),
drain->info[rank].reason) < 0)
goto error;
}
Expand Down

0 comments on commit 942c5cd

Please sign in to comment.