Indent activity.c

This commit is contained in:
Anshul Maheshwari 2015-05-19 11:37:41 +05:30
parent 2ed9789f9c
commit f9c26d8684

View File

@ -7,20 +7,20 @@ relevant events. */
static int credits_shown=0; static int credits_shown=0;
unsigned long net_activity_gui=0; unsigned long net_activity_gui=0;
/* Print current progress. For percentaje, -1 -> streaming mode */ /* Print current progress. For percentage, -1 -> streaming mode */
void activity_progress (int percentaje, int cur_min, int cur_sec) void activity_progress (int percentage, int cur_min, int cur_sec)
{ {
if (!ccx_options.no_progress_bar) if (!ccx_options.no_progress_bar)
{ {
if (percentaje==-1) if (percentage==-1)
mprint ("\rStreaming | %02d:%02d", cur_min, cur_sec); mprint ("\rStreaming | %02d:%02d", cur_min, cur_sec);
else else
mprint ("\r%3d%% | %02d:%02d",percentaje, cur_min, cur_sec); mprint ("\r%3d%% | %02d:%02d",percentage, cur_min, cur_sec);
} }
fflush (stdout); fflush (stdout);
if (ccx_options.gui_mode_reports) if (ccx_options.gui_mode_reports)
{ {
fprintf (stderr, "###PROGRESS#%d#%d#%d\n", percentaje, cur_min, cur_sec); fprintf (stderr, "###PROGRESS#%d#%d#%d\n", percentage, cur_min, cur_sec);
fflush (stderr); fflush (stderr);
} }
} }
@ -34,7 +34,8 @@ void activity_input_file_open (const char *filename)
} }
} }
void activity_library_process(enum ccx_common_logging_gui message_type, ...){ void activity_library_process(enum ccx_common_logging_gui message_type, ...)
{
if (ccx_options.gui_mode_reports){ if (ccx_options.gui_mode_reports){
va_list args; va_list args;
va_start(args, message_type); va_start(args, message_type);