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

Added printout for nojobs and nosteps options for AccountStorageEnforce

parent a8d2a9d3
No related branches found
No related tags found
No related merge requests found
...@@ -1774,6 +1774,16 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len) ...@@ -1774,6 +1774,16 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len)
strcat(str, ","); strcat(str, ",");
strcat(str, "limits"); //7 len strcat(str, "limits"); //7 len
} }
if (enforce & ACCOUNTING_ENFORCE_NO_JOBS) {
if (str[0])
strcat(str, ",");
strcat(str, "nojobs"); //7 len
}
if (enforce & ACCOUNTING_ENFORCE_NO_JOBS) {
if (str[0])
strcat(str, ",");
strcat(str, "nosteps"); //8 len
}
if (enforce & ACCOUNTING_ENFORCE_QOS) { if (enforce & ACCOUNTING_ENFORCE_QOS) {
if (str[0]) if (str[0])
strcat(str, ","); strcat(str, ",");
...@@ -1789,7 +1799,7 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len) ...@@ -1789,7 +1799,7 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len)
strcat(str, ","); strcat(str, ",");
strcat(str, "wckeys"); //7 len strcat(str, "wckeys"); //7 len
} }
// total len 35 // total len 50
if (str[0] == '\0') if (str[0] == '\0')
strcat(str, "none"); strcat(str, "none");
......
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