Skip to content
Snippets Groups Projects
Commit b1c5716d authored by Danny Auble's avatar Danny Auble
Browse files

Print NONE for slurmdb_purge_string if purge == NO_VAL. addition to commit

9b00f12c
parent 9b00f12c
No related branches found
No related tags found
No related merge requests found
......@@ -2158,8 +2158,14 @@ extern uint32_t slurmdb_parse_purge(char *string)
extern char *slurmdb_purge_string(uint32_t purge, char *string, int len,
bool with_archive)
{
uint32_t units = SLURMDB_PURGE_GET_UNITS(purge);
uint32_t units;
if (purge == NO_VAL) {
snprintf(string, len, "NONE");
return string;
}
units = SLURMDB_PURGE_GET_UNITS(purge);
if (SLURMDB_PURGE_IN_HOURS(purge)) {
if (with_archive && SLURMDB_PURGE_ARCHIVE_SET(purge))
snprintf(string, len, "%u hours*", units);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment