aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r--src/fs/gnunet-download.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c
index aa1da8f3d..e3fb10947 100644
--- a/src/fs/gnunet-download.c
+++ b/src/fs/gnunet-download.c
@@ -91,9 +91,12 @@ display_bar (unsigned long long x,
91 unsigned int endeq; 91 unsigned int endeq;
92 float ratio_complete; 92 float ratio_complete;
93 93
94#ifndef MINGW 94#if !WINDOWS
95 if (0 == isatty (1)) 95 if (0 == isatty (1))
96 return; 96 return;
97#else
98 if (FILE_TYPE_CHAR != GetFileType (GetStdHandle (STD_OUTPUT_HANDLE)))
99 return;
97#endif 100#endif
98 ratio_complete = x/(float)n; 101 ratio_complete = x/(float)n;
99 endeq = ratio_complete * w; 102 endeq = ratio_complete * w;