Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
bed95e5a
Commit
bed95e5a
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add "T" between date and time in jobcomp/filetxt output.
parent
32293e92
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+1
-1
1 addition, 1 deletion
NEWS
src/plugins/jobcomp/filetxt/jobcomp_filetxt.c
+2
-2
2 additions, 2 deletions
src/plugins/jobcomp/filetxt/jobcomp_filetxt.c
with
3 additions
and
3 deletions
NEWS
+
1
−
1
View file @
bed95e5a
...
...
@@ -18,7 +18,7 @@ documents those changes that are of interest to users and admins.
-- Bluegene - before assigning a job to a block the plugin will check the bps
to make sure they aren't in error state.
-- Change time format in job completion logging (JobCompType=jobcomp/filetxt)
from "MM/DD HH:MM:SS" to "YYYY-MM-DD
HH:MM:SS", conforming with the ISO8601
from "MM/DD HH:MM:SS" to "YYYY-MM-DD
T
HH:MM:SS", conforming with the ISO8601
standard format.
* Changes in SLURM 1.1.0-pre6
...
...
This diff is collapsed.
Click to expand it.
src/plugins/jobcomp/filetxt/jobcomp_filetxt.c
+
2
−
2
View file @
bed95e5a
...
...
@@ -170,7 +170,7 @@ _get_user_name(uint32_t user_id, char *user_name, int buf_size)
}
/*
* make_time_str - convert time_t to string with "YYYY-MM-DD
HH:MM:SS"
* make_time_str - convert time_t to string with "YYYY-MM-DD
T
HH:MM:SS"
* Note this is the ISO8601 standard format
* IN time - a time stamp
* IN str_size - size of string buffer
...
...
@@ -182,7 +182,7 @@ _make_time_str (time_t *time, char *string, int str_size)
struct
tm
time_tm
;
localtime_r
(
time
,
&
time_tm
);
snprintf
(
string
,
str_size
,
"%4.4u-%2.2u-%2.2u
%2.2u:%2.2u:%2.2u"
,
snprintf
(
string
,
str_size
,
"%4.4u-%2.2u-%2.2u
T
%2.2u:%2.2u:%2.2u"
,
(
time_tm
.
tm_year
+
1900
),
(
time_tm
.
tm_mon
+
1
),
time_tm
.
tm_mday
,
time_tm
.
tm_hour
,
time_tm
.
tm_min
,
time_tm
.
tm_sec
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment