cmd/ursrv: Display more relevant data (#17)
This commit is contained in:
@@ -61,7 +61,7 @@ var funcs = map[string]interface{}{
|
||||
parts = append(parts, part)
|
||||
}
|
||||
if len(input) > 0 {
|
||||
parts = append(parts, input[:len(input)])
|
||||
parts = append(parts, input[:])
|
||||
}
|
||||
return parts[whichPart-1]
|
||||
},
|
||||
@@ -1329,10 +1329,10 @@ func getReport(db *sql.DB) map[string]interface{} {
|
||||
r["nodes"] = nodes
|
||||
r["versionNodes"] = reports
|
||||
r["categories"] = categories
|
||||
r["versions"] = group(byVersion, analyticsFor(versions, 2000), 5)
|
||||
r["versions"] = group(byVersion, analyticsFor(versions, 2000), 10)
|
||||
r["versionPenetrations"] = penetrationLevels(analyticsFor(versions, 2000), []float64{50, 75, 90, 95})
|
||||
r["platforms"] = group(byPlatform, analyticsFor(platforms, 2000), 5)
|
||||
r["compilers"] = group(byCompiler, analyticsFor(compilers, 2000), 3)
|
||||
r["compilers"] = group(byCompiler, analyticsFor(compilers, 2000), 5)
|
||||
r["builders"] = analyticsFor(builders, 12)
|
||||
r["featureOrder"] = featureOrder
|
||||
r["locations"] = locations
|
||||
|
||||
Reference in New Issue
Block a user