Commit 52e9d0d
committed
resource: round drain timestamps to nearest whole seconds
Problem: Timestamps for drained nodes are kept with sub-microsecond
precision. This causes the drain object in the resource.status response
to be much less compressible with arguably little benefit. It also
reduces the number of lines that can be coalesced in `flux resource
drain`.
Round timestamps while building the drainset object. This reduces
the drain object size when a significant number of ranks are drained
within the same second.1 parent 42fdaaa commit 52e9d0d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | | - | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
0 commit comments