Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ORG.Asm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ORG.Asm
ORG.Asm
Commits
25517945
Commit
25517945
authored
Aug 03, 2016
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch a bug in the progressbar printing leading to a bus error with some
C compiler and Cython version >+ 0.24
parent
7b2d3ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
python/orgasm/apps/progress.pyx
python/orgasm/apps/progress.pyx
+8
-8
No files found.
python/orgasm/apps/progress.pyx
View file @
25517945
...
...
@@ -110,23 +110,23 @@ cdef class ProgressBar:
if
self
.
ontty
:
fraction
=<
int
>
(
percent
*
50.
)
self
.
arrow
=
(
self
.
arrow
+
1
)
%
4
self
.
diese
[
fraction
]
=
0
self
.
spaces
[
50
-
fraction
]
=
0
if
days
:
<
void
>
fprintf
(
stderr
,
b
'
\r
%s %5.1f %% |%
s%c%
s] remain : %d days %02d:%02d:%02d'
,
<
void
>
fprintf
(
stderr
,
b
'
\r
%s %5.1f %% |%
.*s%c%.*
s] remain : %d days %02d:%02d:%02d'
,
self
.
chead
,
percent
*
100
,
self
.
diese
,
self
.
wheel
[
self
.
arrow
],
self
.
spaces
,
fraction
,
self
.
diese
,
self
.
wheel
[
self
.
arrow
],
50
-
fraction
,
self
.
spaces
,
days
,
hour
,
minu
,
sec
)
else
:
<
void
>
fprintf
(
stderr
,
b
'
\r
%s %5.1f %% |%
s%c%
s] remain : %02d:%02d:%02d'
,
<
void
>
fprintf
(
stderr
,
b
'
\r
%s %5.1f %% |%
.*s%c%.*
s] remain : %02d:%02d:%02d'
,
self
.
chead
,
percent
*
100.
,
self
.
diese
,
self
.
wheel
[
self
.
arrow
],
self
.
spaces
,
fraction
,
self
.
diese
,
self
.
wheel
[
self
.
arrow
],
50
-
fraction
,
self
.
spaces
,
hour
,
minu
,
sec
)
self
.
diese
[
fraction
]
=
b
'#'
self
.
spaces
[
50
-
fraction
]
=
b
' '
tenth
=
int
(
percent
*
10
)
if
tenth
!=
self
.
lastlog
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment