Fossil SCM
Link the /hash-collisions page as a submenu item on /stat.
Commit
b0e1196a2f74d142782ec9043419d25a7b9f3a6b
Parent
aa12ac91cf930d0…
2 files changed
+3
-1
+2
-1
+3
-1
| --- src/name.c | ||
| +++ src/name.c | ||
| @@ -1103,11 +1103,13 @@ | ||
| 1103 | 1103 | if( aCollide[i].z[0]==0 ) memcpy(aCollide[i].z, zPrev, n+1); |
| 1104 | 1104 | } |
| 1105 | 1105 | memcpy(zPrev, zUuid, n+1); |
| 1106 | 1106 | } |
| 1107 | 1107 | 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"); | |
| 1109 | 1111 | @ <table border=1><thead> |
| 1110 | 1112 | @ <tr><th>Length<th>Instances<th>First Instance</tr> |
| 1111 | 1113 | @ </thead><tbody> |
| 1112 | 1114 | for(i=1; i<=UUID_SIZE; i++){ |
| 1113 | 1115 | if( aCollide[i].cnt==0 ) continue; |
| 1114 | 1116 |
| --- 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 @@ | ||
| 61 | 61 | if( g.perm.Admin ){ |
| 62 | 62 | style_submenu_element("URLs", "URLs and Checkouts", "urllist"); |
| 63 | 63 | style_submenu_element("Schema", "Repository Schema", "repo_schema"); |
| 64 | 64 | style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat"); |
| 65 | 65 | } |
| 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"); | |
| 67 | 68 | @ <table class="label-value"> |
| 68 | 69 | @ <tr><th>Repository Size:</th><td> |
| 69 | 70 | fsize = file_size(g.zRepositoryName); |
| 70 | 71 | bigSizeName(sizeof(zBuf), zBuf, fsize); |
| 71 | 72 | @ %s(zBuf) |
| 72 | 73 |
| --- 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 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 Size:</th><td> |
| 70 | fsize = file_size(g.zRepositoryName); |
| 71 | bigSizeName(sizeof(zBuf), zBuf, fsize); |
| 72 | @ %s(zBuf) |
| 73 |