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
9f32673e
Commit
9f32673e
authored
21 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Prevent mem size range overflow on adev
parent
c7b38890
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/sinfo/sinfo.c
+4
-5
4 additions, 5 deletions
src/sinfo/sinfo.c
with
4 additions
and
5 deletions
src/sinfo/sinfo.c
+
4
−
5
View file @
9f32673e
...
@@ -247,8 +247,8 @@ static const char display_line[] =
...
@@ -247,8 +247,8 @@ static const char display_line[] =
int
node_sz_name
=
15
;
int
node_sz_name
=
15
;
int
node_sz_state
=
6
;
int
node_sz_state
=
6
;
int
node_sz_cpus
=
4
;
int
node_sz_cpus
=
4
;
int
node_sz_mem
=
6
;
int
node_sz_mem
=
9
;
int
node_sz_disk
=
8
;
int
node_sz_disk
=
11
;
int
node_sz_weight
=
6
;
int
node_sz_weight
=
6
;
int
node_sz_part
=
10
;
int
node_sz_part
=
10
;
int
node_sz_features
=
0
;
int
node_sz_features
=
0
;
...
@@ -547,8 +547,8 @@ int part_sz_part = 10;
...
@@ -547,8 +547,8 @@ int part_sz_part = 10;
int
part_sz_num
=
5
;
int
part_sz_num
=
5
;
int
part_sz_state
=
6
;
int
part_sz_state
=
6
;
int
part_sz_cpus
=
4
;
int
part_sz_cpus
=
4
;
int
part_sz_mem
=
6
;
int
part_sz_mem
=
9
;
int
part_sz_disk
=
8
;
int
part_sz_disk
=
11
;
int
part_sz_nodes
=
0
;
int
part_sz_nodes
=
0
;
static
void
_print_partition_header
(
bool
no_name
)
static
void
_print_partition_header
(
bool
no_name
)
...
@@ -713,7 +713,6 @@ int _print_str(char *str, int width, bool right)
...
@@ -713,7 +713,6 @@ int _print_str(char *str, int width, bool right)
format
[
1
]
=
's'
;
format
[
1
]
=
's'
;
format
[
2
]
=
'\0'
;
format
[
2
]
=
'\0'
;
}
}
if
((
printed
=
printf
(
format
,
str
))
<
0
)
if
((
printed
=
printf
(
format
,
str
))
<
0
)
return
printed
;
return
printed
;
...
...
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