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
8be1d3e0
Commit
8be1d3e0
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
bit_fmt now does not return brackets surrounding any set of data.
parent
df8ab2da
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
-0
1 addition, 0 deletions
NEWS
src/common/bitstring.c
+6
-6
6 additions, 6 deletions
src/common/bitstring.c
with
7 additions
and
6 deletions
NEWS
+
1
−
0
View file @
8be1d3e0
...
@@ -31,6 +31,7 @@ documents those changes that are of interest to users and admins.
...
@@ -31,6 +31,7 @@ documents those changes that are of interest to users and admins.
-- Add support for licenses in resource reservation.
-- Add support for licenses in resource reservation.
-- BLUEGENE - Jobs waiting for a block to boot will now be in Configuring
-- BLUEGENE - Jobs waiting for a block to boot will now be in Configuring
state.
state.
-- bit_fmt now does not return brackets surrounding any set of data.
* Changes in SLURM 2.1.0-pre1
* Changes in SLURM 2.1.0-pre1
=============================
=============================
...
...
This diff is collapsed.
Click to expand it.
src/common/bitstring.c
+
6
−
6
View file @
8be1d3e0
...
@@ -938,12 +938,12 @@ bit_fmt(char *str, int len, bitstr_t *b)
...
@@ -938,12 +938,12 @@ bit_fmt(char *str, int len, bitstr_t *b)
}
}
if
(
count
>
0
)
if
(
count
>
0
)
str
[
strlen
(
str
)
-
1
]
=
'\0'
;
/* zap trailing comma */
str
[
strlen
(
str
)
-
1
]
=
'\0'
;
/* zap trailing comma */
if
(
count
>
1
)
{
/* add braces if we have more than one here */
/*
if (count > 1) { /
\
* add braces if we have more than one here
*\/
*/
assert
(
strlen
(
str
)
+
3
<
len
);
/*
assert(strlen(str) + 3 < len);
*/
memmove
(
str
+
1
,
str
,
strlen
(
str
));
/*
memmove(str + 1, str, strlen(str));
*/
str
[
0
]
=
'['
;
/*
str[0] = '[';
*/
strcat
(
str
,
"]"
);
/*
strcat(str, "]");
*/
}
/* } */
return
str
;
return
str
;
}
}
...
...
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