Skip to content

Commit

Permalink
Final update
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Dec 13, 2021
1 parent c242fc2 commit 4aa9801
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,17 @@ List of APIs:
{
"project": "all",
"db_name": "allprj",
"contributors": 121239,
"contributions": 5833526,
"boc": 2023522655
"contributors": 140781,
"contributions": 7300732,
"boc": 3117663743,
"committers": 31839,
"commits": 1371051,
"events": 13482981,
"forkers": 183040,
"repositories": 3478,
"stargazers": 311235,
"countries": 184,
"companies": 11308
}
```
- Example API call: `./devel/api_site_stats.sh all`.
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,7 @@ func apiSiteStats(info string, w http.ResponseWriter, payload map[string]interfa
if ok {
age := time.Now().Sub(data.dt).Seconds()
if age < 43200 {
lib.Printf("using cached value %+v (age is %.0f < 43200)\n", data, age)
lib.Printf("Using cached value %+v (age is %.0f < 43200)\n", data, age)
w.WriteHeader(http.StatusOK)
jsoniter.NewEncoder(w).Encode(data.siteStats)
return
Expand Down

0 comments on commit 4aa9801

Please sign in to comment.