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
59147dc0
Commit
59147dc0
authored
17 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
make sure the enums I make are the ones I want them to be
parent
4116aeca
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/sacct/sacct.c
+19
-19
19 additions, 19 deletions
src/sacct/sacct.c
with
19 additions
and
19 deletions
src/sacct/sacct.c
+
19
−
19
View file @
59147dc0
...
...
@@ -215,13 +215,13 @@ int printfields[MAX_PRINTFIELDS], /* Indexed into fields[] */
int
main
(
int
argc
,
char
**
argv
)
{
enum
{
DUMP
,
EXPIRE
,
FDUMP
,
LIST
,
STAT
,
HELP
,
USAGE
SACCT_
DUMP
,
SACCT_
EXPIRE
,
SACCT_
FDUMP
,
SACCT_
LIST
,
SACCT_
STAT
,
SACCT_
HELP
,
SACCT_
USAGE
}
op
;
int
rc
=
0
;
...
...
@@ -233,9 +233,9 @@ int main(int argc, char **argv)
*/
if
(
params
.
opt_help
)
op
=
HELP
;
op
=
SACCT_
HELP
;
else
if
(
params
.
opt_dump
)
{
op
=
DUMP
;
op
=
SACCT_
DUMP
;
if
(
params
.
opt_long
||
params
.
opt_total
||
params
.
opt_field_list
||
params
.
opt_expire
)
{
if
(
params
.
opt_verbose
)
...
...
@@ -254,11 +254,11 @@ int main(int argc, char **argv)
goto
finished
;
}
}
else
if
(
params
.
opt_fdump
)
{
op
=
FDUMP
;
op
=
SACCT_
FDUMP
;
}
else
if
(
params
.
opt_stat
)
{
op
=
STAT
;
op
=
SACCT_
STAT
;
}
else
if
(
params
.
opt_expire
)
{
op
=
EXPIRE
;
op
=
SACCT_
EXPIRE
;
if
(
params
.
opt_long
||
params
.
opt_total
||
params
.
opt_field_list
||
(
params
.
opt_gid
>=
0
)
||
(
params
.
opt_uid
>=
0
)
||
...
...
@@ -288,24 +288,24 @@ int main(int argc, char **argv)
goto
finished
;
}
}
else
op
=
LIST
;
op
=
SACCT_
LIST
;
switch
(
op
)
{
case
DUMP
:
case
SACCT_
DUMP
:
get_data
();
if
(
params
.
opt_completion
)
do_dump_completion
();
else
do_dump
();
break
;
case
EXPIRE
:
case
SACCT_
EXPIRE
:
do_expire
();
break
;
case
FDUMP
:
case
SACCT_
FDUMP
:
get_data
();
break
;
case
LIST
:
case
SACCT_
LIST
:
if
(
params
.
opt_header
)
/* give them something to look */
_print_header
();
/* at while we think... */
get_data
();
...
...
@@ -314,12 +314,12 @@ int main(int argc, char **argv)
else
do_list
();
break
;
case
STAT
:
case
SACCT_
STAT
:
if
(
params
.
opt_header
)
/* give them something to look */
_print_header
();
/* at while we think... */
do_stat
();
break
;
case
HELP
:
case
SACCT_
HELP
:
do_help
();
break
;
default:
...
...
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