Fossil SCM

Link the /hash-collisions page as a submenu item on /stat.

drh 2015-02-11 13:51 trunk
Commit b0e1196a2f74d142782ec9043419d25a7b9f3a6b
2 files changed +3 -1 +2 -1
+3 -1
--- src/name.c
+++ src/name.c
@@ -1103,11 +1103,13 @@
11031103
if( aCollide[i].z[0]==0 ) memcpy(aCollide[i].z, zPrev, n+1);
11041104
}
11051105
memcpy(zPrev, zUuid, n+1);
11061106
}
11071107
db_finalize(&q);
1108
- style_header("Hash Prefix Collisions");
1108
+ style_header("SHA1 Prefix Collisions");
1109
+ style_submenu_element("Activity Reports", 0, "reports");
1110
+ style_submenu_element("Stats", 0, "stat");
11091111
@ <table border=1><thead>
11101112
@ <tr><th>Length<th>Instances<th>First Instance</tr>
11111113
@ </thead><tbody>
11121114
for(i=1; i<=UUID_SIZE; i++){
11131115
if( aCollide[i].cnt==0 ) continue;
11141116
--- src/name.c
+++ src/name.c
@@ -1103,11 +1103,13 @@
1103 if( aCollide[i].z[0]==0 ) memcpy(aCollide[i].z, zPrev, n+1);
1104 }
1105 memcpy(zPrev, zUuid, n+1);
1106 }
1107 db_finalize(&q);
1108 style_header("Hash Prefix Collisions");
 
 
1109 @ <table border=1><thead>
1110 @ <tr><th>Length<th>Instances<th>First Instance</tr>
1111 @ </thead><tbody>
1112 for(i=1; i<=UUID_SIZE; i++){
1113 if( aCollide[i].cnt==0 ) continue;
1114
--- src/name.c
+++ src/name.c
@@ -1103,11 +1103,13 @@
1103 if( aCollide[i].z[0]==0 ) memcpy(aCollide[i].z, zPrev, n+1);
1104 }
1105 memcpy(zPrev, zUuid, n+1);
1106 }
1107 db_finalize(&q);
1108 style_header("SHA1 Prefix Collisions");
1109 style_submenu_element("Activity Reports", 0, "reports");
1110 style_submenu_element("Stats", 0, "stat");
1111 @ <table border=1><thead>
1112 @ <tr><th>Length<th>Instances<th>First Instance</tr>
1113 @ </thead><tbody>
1114 for(i=1; i<=UUID_SIZE; i++){
1115 if( aCollide[i].cnt==0 ) continue;
1116
+2 -1
--- src/stat.c
+++ src/stat.c
@@ -61,11 +61,12 @@
6161
if( g.perm.Admin ){
6262
style_submenu_element("URLs", "URLs and Checkouts", "urllist");
6363
style_submenu_element("Schema", "Repository Schema", "repo_schema");
6464
style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
6565
}
66
- style_submenu_element("Activity", "Activity Reports", "reports");
66
+ style_submenu_element("Activity Reports", 0, "reports");
67
+ style_submenu_element("SHA1 Collisions", 0, "hash-collisions");
6768
@ <table class="label-value">
6869
@ <tr><th>Repository&nbsp;Size:</th><td>
6970
fsize = file_size(g.zRepositoryName);
7071
bigSizeName(sizeof(zBuf), zBuf, fsize);
7172
@ %s(zBuf)
7273
--- src/stat.c
+++ src/stat.c
@@ -61,11 +61,12 @@
61 if( g.perm.Admin ){
62 style_submenu_element("URLs", "URLs and Checkouts", "urllist");
63 style_submenu_element("Schema", "Repository Schema", "repo_schema");
64 style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
65 }
66 style_submenu_element("Activity", "Activity Reports", "reports");
 
67 @ <table class="label-value">
68 @ <tr><th>Repository&nbsp;Size:</th><td>
69 fsize = file_size(g.zRepositoryName);
70 bigSizeName(sizeof(zBuf), zBuf, fsize);
71 @ %s(zBuf)
72
--- src/stat.c
+++ src/stat.c
@@ -61,11 +61,12 @@
61 if( g.perm.Admin ){
62 style_submenu_element("URLs", "URLs and Checkouts", "urllist");
63 style_submenu_element("Schema", "Repository Schema", "repo_schema");
64 style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
65 }
66 style_submenu_element("Activity Reports", 0, "reports");
67 style_submenu_element("SHA1 Collisions", 0, "hash-collisions");
68 @ <table class="label-value">
69 @ <tr><th>Repository&nbsp;Size:</th><td>
70 fsize = file_size(g.zRepositoryName);
71 bigSizeName(sizeof(zBuf), zBuf, fsize);
72 @ %s(zBuf)
73

Keyboard Shortcuts

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