Skip to content
Snippets Groups Projects
Commit 3c265c77 authored by jette's avatar jette
Browse files

Work around Cray compiler bug

See bug 1184
parent c6583e12
No related branches found
No related tags found
No related merge requests found
...@@ -1328,12 +1328,10 @@ static int _update_uid_list(slurmctld_resv_t *resv_ptr, char *users) ...@@ -1328,12 +1328,10 @@ static int _update_uid_list(slurmctld_resv_t *resv_ptr, char *users)
static void _pack_resv(slurmctld_resv_t *resv_ptr, Buf buffer, static void _pack_resv(slurmctld_resv_t *resv_ptr, Buf buffer,
bool internal, uint16_t protocol_version) bool internal, uint16_t protocol_version)
{ {
time_t now, start_relative, end_relative; time_t now = time(NULL), start_relative, end_relative;
if (resv_ptr->flags & RESERVE_FLAG_TIME_FLOAT) { if (resv_ptr->flags & RESERVE_FLAG_TIME_FLOAT)
now = time(NULL);
last_resv_update = now; last_resv_update = now;
}
if (!internal && (resv_ptr->flags & RESERVE_FLAG_TIME_FLOAT)) { if (!internal && (resv_ptr->flags & RESERVE_FLAG_TIME_FLOAT)) {
start_relative = resv_ptr->start_time + now; start_relative = resv_ptr->start_time + now;
if (resv_ptr->duration == INFINITE) if (resv_ptr->duration == INFINITE)
......
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