Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ORG.Asm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ORG.Asm
ORG.Asm
Commits
5ab4154d
Commit
5ab4154d
authored
Nov 05, 2016
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supress the intermediate progression logging if the log is done on a tty
parent
be2c5ba6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
progress.pyx
python/orgasm/apps/progress.pyx
+4
-4
No files found.
python/orgasm/apps/progress.pyx
View file @
5ab4154d
...
@@ -129,11 +129,11 @@ cdef class ProgressBar:
...
@@ -129,11 +129,11 @@ cdef class ProgressBar:
hour,minu,sec)
hour,minu,sec)
tenth = int(percent * 10)
tenth = int(percent * 10)
if tenth != self.lastlog:
if tenth != self.lastlog
and not self.ontty
:
if self.ontty:
#
if self.ontty:
<void>fputs(b'\n',stderr)
#
<void>fputs(b'\n',stderr)
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
bytes2str(self._head),
bytes2str(self._head),
percent*100.,
percent*100.,
...
...
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