Similar to the "Current" tab. For the "Current" tab we use time but it is marked as deprecated, so prefer and parse the duration field from the lsinfo response, which may contain a fractional part.
Consider replacing the '?' for unknown times with a dash or removing it altogether.
The items array is not sufficient to store this, we need to abandon struct strv. Consider using ARRAY macros—library_tab_add() is only used to append items and the array is only reset in one place.
Similar to the "Current" tab. For the "Current" tab we use `time` but it is marked as deprecated, so prefer and parse the `duration` field from the `lsinfo` response, which may contain a fractional part.
Consider replacing the '?' for unknown times with a dash or removing it altogether.
The `items` array is not sufficient to store this, we need to abandon `struct strv`. Consider using `ARRAY` macros—`library_tab_add()` is only used to append items and the array is only reset in one place.
Similar to the "Current" tab. For the "Current" tab we use
time
but it is marked as deprecated, so prefer and parse theduration
field from thelsinfo
response, which may contain a fractional part.Consider replacing the '?' for unknown times with a dash or removing it altogether.
The
items
array is not sufficient to store this, we need to abandonstruct strv
. Consider usingARRAY
macros—library_tab_add()
is only used to append items and the array is only reset in one place.