Fossil

Check-in [f4a9df4d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Only show the number of requests on the /test_env page if running on unix from "fossil server" or "fossil ui".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f4a9df4dd0d304b02b190d646783b517619179e91498f31365764e547f428b95
User & Date: drh 2017-12-23 04:21:41.037
Context
2017-12-28
13:53
Add the fossil-stress.tcl script for stress-testing server implementations. ... (check-in: 0a6d8ff5 user: drh tags: trunk)
2017-12-26
07:47
Initial updates to get the timeline looking correct. ... (check-in: cec1e060 user: zakero tags: skin-xekri-timeline)
2017-12-23
04:21
Only show the number of requests on the /test_env page if running on unix from "fossil server" or "fossil ui". ... (check-in: f4a9df4d user: drh tags: trunk)
02:43
The "fossil server" command keeps track of the total number of requests and displays that value on the /test_env page. ... (check-in: 41c7caad user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/style.c.
906
907
908
909
910
911
912

913

914
915
916
917
918
919
920
  for(i=0, c='a'; c<='z'; c++){
    if( login_has_capability(&c, 1, 0) ) zCap[i++] = c;
  }
  zCap[i] = 0;
  @ g.userUid = %d(g.userUid)<br />
  @ g.zLogin = %h(g.zLogin)<br />
  @ g.isHuman = %d(g.isHuman)<br />

  @ g.nRequest = %d(g.nRequest)<br />

  if( g.nPendingRequest>1 ){
    @ g.nPendingRequest = %d(g.nPendingRequest)<br />
  }
  @ capabilities = %s(zCap)<br />
  for(i=0, c='a'; c<='z'; c++){
    if( login_has_capability(&c, 1, LOGIN_ANON)
         && !login_has_capability(&c, 1, 0) ) zCap[i++] = c;







>
|
>







906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
  for(i=0, c='a'; c<='z'; c++){
    if( login_has_capability(&c, 1, 0) ) zCap[i++] = c;
  }
  zCap[i] = 0;
  @ g.userUid = %d(g.userUid)<br />
  @ g.zLogin = %h(g.zLogin)<br />
  @ g.isHuman = %d(g.isHuman)<br />
  if( g.nRequest ){
    @ g.nRequest = %d(g.nRequest)<br />
  }
  if( g.nPendingRequest>1 ){
    @ g.nPendingRequest = %d(g.nPendingRequest)<br />
  }
  @ capabilities = %s(zCap)<br />
  for(i=0, c='a'; c<='z'; c++){
    if( login_has_capability(&c, 1, LOGIN_ANON)
         && !login_has_capability(&c, 1, 0) ) zCap[i++] = c;