mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
(file_eta_prepare_for_show): join checks of eta_secs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f911cf30cb
commit
bf9a279d1a
@ -350,14 +350,17 @@ file_eta_prepare_for_show (char *buffer, double eta_secs, gboolean always_show)
|
||||
{
|
||||
char _fmt_buff[BUF_TINY];
|
||||
|
||||
if (eta_secs <= 0.5 && !always_show)
|
||||
if (eta_secs <= 0.5)
|
||||
{
|
||||
*buffer = '\0';
|
||||
return;
|
||||
if (!always_show)
|
||||
{
|
||||
*buffer = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
eta_secs = 1.0;
|
||||
}
|
||||
|
||||
if (eta_secs <= 0.5)
|
||||
eta_secs = 1;
|
||||
file_frmt_time (_fmt_buff, eta_secs);
|
||||
g_snprintf (buffer, BUF_TINY, _("ETA %s"), _fmt_buff);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user