Skip to content
Snippets Groups Projects
Commit fe0ec976 authored by Morris Jette's avatar Morris Jette
Browse files

Correct began time in logging of slow events

This messsage type:
Warning: Note very large processing time from schedule: usec=9467365 began=11:06:23.003
is reporting the end time as the began value
parent 346fc106
No related branches found
No related tags found
No related merge requests found
......@@ -63,13 +63,13 @@ extern void slurm_diff_tv_str(struct timeval *tv1, struct timeval *tv2,
if (!limit)
limit = 1000000;
if (*delta_t > limit) {
if (!localtime_r(&tv2->tv_sec, &tm))
if (!localtime_r(&tv1->tv_sec, &tm))
fprintf(stderr, "localtime_r() failed\n");
if (strftime(p, sizeof(p), "%T", &tm) == 0)
fprintf(stderr, "strftime() returned 0\n");
verbose("Warning: Note very large processing "
"time from %s: %s began=%s.%3.3d",
from, tv_str, p, (int)(tv2->tv_usec / 1000));
from, tv_str, p, (int)(tv1->tv_usec / 1000));
}
}
}
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