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
6ea336f6
Commit
6ea336f6
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
remove debug and better comments
parent
05eaba79
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/plugins/accounting_storage/mysql/mysql_rollup.c
+17
-12
17 additions, 12 deletions
src/plugins/accounting_storage/mysql/mysql_rollup.c
with
17 additions
and
12 deletions
src/plugins/accounting_storage/mysql/mysql_rollup.c
+
17
−
12
View file @
6ea336f6
...
...
@@ -381,9 +381,14 @@ extern int mysql_hourly_rollup(mysql_conn_t *mysql_conn,
unexpected results with association based reports
since the association is given the total amount of
time of each reservation, thus equaling more time
tha
t
is available. Job/Cluster/Reservation reports
tha
n
is available. Job/Cluster/Reservation reports
should be fine though since we really don't over
allocate resources.
allocate resources. The issue with us not being
able to handle overlapping reservations here is
unless the reservation completely overlaps the
other reservation we have no idea how many cpus
should be removed since this could be a
heterogeneous system.
*/
while
((
row
=
mysql_fetch_row
(
result
)))
{
int
row_start
=
atoi
(
row
[
RESV_REQ_START
]);
...
...
@@ -447,16 +452,16 @@ extern int mysql_hourly_rollup(mysql_conn_t *mysql_conn,
c_usage
->
pd_cpu
+=
r_usage
->
total_time
;
else
c_usage
->
a_cpu
+=
r_usage
->
total_time
;
char
*
start_char
=
xstrdup
(
ctime
(
&
r_usage
->
start
));
char
*
end_char
=
xstrdup
(
ctime
(
&
r_usage
->
end
));
start_char
[
strlen
(
start_char
)
-
1
]
=
'\0'
;
info
(
"adding this much %lld to cluster %s "
"%d %d %s - %s"
,
r_usage
->
total_time
,
c_usage
->
name
,
(
row_flags
&
RESERVE_FLAG_MAINT
),
r_usage
->
id
,
start_char
,
end_char
);
xfree
(
start_char
);
xfree
(
end_char
);
/*
char *start_char = xstrdup(ctime(&r_usage->start));
*/
/*
char *end_char = xstrdup(ctime(&r_usage->end));
*/
/*
start_char[strlen(start_char)-1] = '\0';
*/
/*
info("adding this much %lld to cluster %s "
*/
/*
"%d %d %s - %s",
*/
/*
r_usage->total_time, c_usage->name,
*/
/*
(row_flags & RESERVE_FLAG_MAINT),
*/
/*
r_usage->id, start_char, end_char);
*/
/*
xfree(start_char);
*/
/*
xfree(end_char);
*/
}
mysql_free_result
(
result
);
...
...
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