| ︙ | | |
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
|
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
|
-
+
|
@ <td>Last run: %z(backoffice_last_run())</td></tr>
}
if( g.perm.Admin && alert_enabled() ){
stats_for_email();
}
@ </table>
style_footer();
style_body_and_footer("stat");
}
/*
** COMMAND: dbstat
**
** Usage: %fossil dbstat OPTIONS
**
|
| ︙ | | |
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
|
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
|
-
+
|
url_parse_local(zRemote, URL_OMIT_USER, &x);
@ <p><a href='%h(x.canonical)'>%h(zRemote)</a>
}else{
@ <p>%h(zRemote)</p>
}
@ </div>
}
style_footer();
style_body_and_footer("stat");
}
/*
** WEBPAGE: repo_schema
**
** Show the repository schema
*/
|
| ︙ | | |
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
|
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
|
-
+
|
}
@ </pre>
db_finalize(&q);
}else{
style_submenu_element("Stat1","repo_stat1");
}
}
style_footer();
style_body_and_footer("stat");
}
/*
** WEBPAGE: repo_stat1
**
** Show the sqlite_stat1 table for the repository schema
*/
|
| ︙ | | |
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
|
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
|
-
+
|
const char *zStat = db_column_text(&q,2);
char *zUrl = href("%R/repo_schema?n=%t",zTab);
@ INSERT INTO sqlite_stat1 VALUES('%z(zUrl)%h(zTab)</a>','%h(zIdx)','%h(zStat)');
}
@ </pre>
db_finalize(&q);
}
style_footer();
style_body_and_footer("stat");
}
/*
** WEBPAGE: repo-tabsize
**
** Show relative sizes of tables in the repository database.
*/
|
| ︙ | | |
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
|
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
|
-
+
|
fsize = file_size(g.zLocalDbName, ExtFILE);
approxSizeName(sizeof(zBuf), zBuf, fsize);
@ <h2>%h(file_tail(g.zLocalDbName)) Size: %s(zBuf)</h2>
@ <center><svg width='800' height='500'>
piechart_render(800,500,PIE_OTHER|PIE_PERCENT);
@ </svg></center>
}
style_footer();
style_body_and_footer("stat");
}
/*
** Gather statistics on artifact types, counts, and sizes.
**
** Only populate the artstat.atype field if the bWithTypes parameter is true.
*/
|
| ︙ | | |
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
|
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
|
-
+
|
mxCmpr = db_column_int(&q, 2);
mxExp = db_column_int(&q, 3);
sumCmpr = db_column_int64(&q, 4);
sumExp = db_column_int64(&q, 5);
db_finalize(&q);
if( nTotal==0 ){
@ No artifacts in this repository!
style_footer();
style_body_and_footer("stat");
return;
}
avgCmpr = (double)sumCmpr/nTotal;
avgExp = (double)sumExp/nTotal;
db_prepare(&q, "SELECT szCmpr FROM artstat ORDER BY 1 DESC");
r = 0;
|
| ︙ | | |
953
954
955
956
957
958
959
960
961
|
953
954
955
956
957
958
959
960
961
|
-
+
|
@ <td>%h(zDate)</td>
@ <td>%z(href("%R/rcvfrom?rcvid=%d",iRcvid))%d(iRcvid)</a></td></tr>
}
@ </tbody></table></div>
db_finalize(&q);
}
style_table_sorter();
style_footer();
style_body_and_footer("stat");
}
|