mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-05 11:00:22 +02:00
Make compiler happy
This commit is contained in:
parent
b52ee32440
commit
640d1c9df4
@ -363,7 +363,7 @@ show_instance_plain(parray *backup_list, bool show_name)
|
||||
time2iso(row->recovery_time, lengthof(row->recovery_time),
|
||||
backup->recovery_time);
|
||||
else
|
||||
StrNCpy(row->recovery_time, "----", 4);
|
||||
StrNCpy(row->recovery_time, "----", sizeof(row->recovery_time));
|
||||
widths[cur] = Max(widths[cur], strlen(row->recovery_time));
|
||||
cur++;
|
||||
|
||||
@ -388,7 +388,7 @@ show_instance_plain(parray *backup_list, bool show_name)
|
||||
snprintf(row->duration, lengthof(row->duration), "%.*lfs", 0,
|
||||
difftime(backup->end_time, backup->start_time));
|
||||
else
|
||||
StrNCpy(row->duration, "----", 4);
|
||||
StrNCpy(row->duration, "----", sizeof(row->duration));
|
||||
widths[cur] = Max(widths[cur], strlen(row->duration));
|
||||
cur++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user