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
c1d0fd01
Commit
c1d0fd01
authored
16 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
added date to report
parent
dcae34e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sreport/cluster_reports.c
+8
-6
8 additions, 6 deletions
src/sreport/cluster_reports.c
with
8 additions
and
6 deletions
src/sreport/cluster_reports.c
+
8
−
6
View file @
c1d0fd01
...
@@ -228,7 +228,8 @@ static int _setup_print_fields_list(List format_list)
...
@@ -228,7 +228,8 @@ static int _setup_print_fields_list(List format_list)
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
}
}
static
List
_get_cluster_list
(
int
argc
,
char
*
argv
[],
List
format_list
)
static
List
_get_cluster_list
(
int
argc
,
char
*
argv
[],
char
*
report_name
,
List
format_list
)
{
{
acct_cluster_cond_t
*
cluster_cond
=
acct_cluster_cond_t
*
cluster_cond
=
xmalloc
(
sizeof
(
acct_cluster_cond_t
));
xmalloc
(
sizeof
(
acct_cluster_cond_t
));
...
@@ -243,15 +244,15 @@ static List _get_cluster_list(int argc, char *argv[], List format_list)
...
@@ -243,15 +244,15 @@ static List _get_cluster_list(int argc, char *argv[], List format_list)
if
(
print_fields_have_header
)
{
if
(
print_fields_have_header
)
{
char
start_char
[
20
];
char
start_char
[
20
];
char
end_char
[
20
];
char
end_char
[
20
];
cluster_cond
->
usage_end
-
=
1
;
time_t
my_end
=
cluster_cond
->
usage_end
-
1
;
slurm_make_time_str
((
time_t
*
)
&
cluster_cond
->
usage_start
,
slurm_make_time_str
((
time_t
*
)
&
cluster_cond
->
usage_start
,
start_char
,
sizeof
(
start_char
));
start_char
,
sizeof
(
start_char
));
slurm_make_time_str
(
(
time_t
*
)
&
cluster_cond
->
usage
_end
,
slurm_make_time_str
(
&
my
_end
,
end_char
,
sizeof
(
end_char
));
end_char
,
sizeof
(
end_char
));
printf
(
"----------------------------------------"
printf
(
"----------------------------------------"
"----------------------------------------
\n
"
);
"----------------------------------------
\n
"
);
printf
(
"
\t
Cluster Utilization Report
%s - %s
\n
"
,
printf
(
"
\t
%s
%s - %s
\n
"
,
start_char
,
end_char
);
report_name
,
start_char
,
end_char
);
printf
(
"----------------------------------------"
printf
(
"----------------------------------------"
"----------------------------------------
\n
"
);
"----------------------------------------
\n
"
);
}
}
...
@@ -282,7 +283,8 @@ extern int cluster_utilization(int argc, char *argv[])
...
@@ -282,7 +283,8 @@ extern int cluster_utilization(int argc, char *argv[])
addto_char_list
(
format_list
,
"Cl,a,d,i,r,o"
);
addto_char_list
(
format_list
,
"Cl,a,d,i,r,o"
);
if
(
!
(
cluster_list
=
_get_cluster_list
(
argc
,
argv
,
format_list
)))
{
if
(
!
(
cluster_list
=
_get_cluster_list
(
argc
,
argv
,
"Cluster Utilization Report"
,
format_list
)))
{
rc
=
SLURM_ERROR
;
rc
=
SLURM_ERROR
;
goto
end_it
;
goto
end_it
;
}
}
...
...
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