Fossil SCM

Fix a compiler warning and reduce the indentation for nested synclog display on the /urllist page.

drh 2021-12-20 13:28 synclog
Commit 59bd2ec738a381cd7f09b897538b30ad85b6c52a73241db6d5f5d3350843135e
1 file changed +1 -1
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -544,11 +544,11 @@
544544
return;
545545
}
546546
547547
if( db_table_exists("repository","synclog") ){
548548
/* This code derived from the "synclog" command in "sync.c" */
549
- const nIndent = 3;
549
+ const int nIndent = 2;
550550
db_prepare(&q,
551551
"WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
552552
" SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
553553
"),\n"
554554
"pull(level, url, mtime, ex) AS (\n"
555555
--- src/stat.c
+++ src/stat.c
@@ -544,11 +544,11 @@
544 return;
545 }
546
547 if( db_table_exists("repository","synclog") ){
548 /* This code derived from the "synclog" command in "sync.c" */
549 const nIndent = 3;
550 db_prepare(&q,
551 "WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
552 " SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
553 "),\n"
554 "pull(level, url, mtime, ex) AS (\n"
555
--- src/stat.c
+++ src/stat.c
@@ -544,11 +544,11 @@
544 return;
545 }
546
547 if( db_table_exists("repository","synclog") ){
548 /* This code derived from the "synclog" command in "sync.c" */
549 const int nIndent = 2;
550 db_prepare(&q,
551 "WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
552 " SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
553 "),\n"
554 "pull(level, url, mtime, ex) AS (\n"
555

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button