summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 85c10b4..3f2bca8 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -486,7 +486,10 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
if(current_time>previous_time)
{
previous_time=current_time;
- ind_stop=photorec_progressbar(stdscr, pass, status, offset, disk_car, partition, *file_nbr, current_time-real_start_time, file_stats);
+ ind_stop=photorec_progressbar(stdscr, pass, status, offset, disk_car,
+ partition, *file_nbr,
+ (current_time > real_start_time ? current_time - real_start_time: 0),
+ file_stats);
}
}
#endif