Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c7d773

Browse files
author
Artur Zakirov
committed
Fix show command result alignment
1 parent30bbf16 commit3c7d773

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎show.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ show_backup_list(FILE *out, parray *backup_list)
189189
inti;
190190

191191
/* show header */
192-
fputs("=============================================================================================================\n",out);
193-
fputs("ID Recovery time Mode Current/Parent TLI Time Data start_lsn stop_lsn Status \n",out);
194-
fputs("=============================================================================================================\n",out);
192+
fputs("==================================================================================================================\n",out);
193+
fputs("ID Recovery time Mode Current/Parent TLITimeDataStart LSN Stop LSN Status \n",out);
194+
fputs("==================================================================================================================\n",out);
195195

196196
for (i=0;i<parray_num(backup_list);i++)
197197
{
@@ -219,7 +219,7 @@ show_backup_list(FILE *out, parray *backup_list)
219219
/* Get parent timeline before printing */
220220
parent_tli=get_parent_tli(backup->tli);
221221

222-
fprintf(out,"%-8s %-19s %-13s %2d /%2d %-10s %6s%X/%X %X/%X %s\n",
222+
fprintf(out,"%-8s %-19s %-13s %2d / %-2d %5s %6s %2X/%08X %2X/%08X %-8s\n",
223223
base36enc(backup->start_time),
224224
timestamp,
225225
modes[backup->backup_mode+ (BACKUP_MODE_FULL+1)*backup->stream],

‎tests/pb_lib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, split_line):
2323

2424
self.id=self.get_inc(split_line)
2525
# TODO: parse to datetime
26-
iflen(split_line)==10:
26+
iflen(split_line)==12:
2727
self.recovery_time="%s %s"% (self.get_inc(split_line),
2828
self.get_inc(split_line))
2929
# if recovery time is '----'
@@ -38,6 +38,8 @@ def __init__(self, split_line):
3838
self.time=self.get_inc(split_line)
3939
# TODO: maybe rename to size?
4040
self.data=self.get_inc(split_line)
41+
self.start_lsn=self.get_inc(split_line)
42+
self.stop_lsn=self.get_inc(split_line)
4143
self.status=self.get_inc(split_line)
4244

4345
defget_inc(self,split_line):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp