Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
58ffc6f5
Commit
58ffc6f5
authored
Sep 13, 2016
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1877
parent
d5fb74aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
adminui.go
adminui.go
+7
-6
statistics.go
toolbox/statistics.go
+4
-0
No files found.
adminui.go
View file @
58ffc6f5
...
@@ -78,13 +78,14 @@ var qpsTpl = `{{define "content"}}
...
@@ -78,13 +78,14 @@ var qpsTpl = `{{define "content"}}
{{range $i, $elem := .Content.Data}}
{{range $i, $elem := .Content.Data}}
<tr>
<tr>
{{range $elem}}
<td>{{index $elem 0}}</td>
<td>
<td>{{index $elem 1}}</td>
{{.}}
<td>{{index $elem 2}}</td>
</td>
<td data-order="{{index $elem 3}}">{{index $elem 4}}</td>
{{end}}
<td data-order="{{index $elem 5}}">{{index $elem 6}}</td>
<td data-order="{{index $elem 7}}">{{index $elem 8}}</td>
<td data-order="{{index $elem 9}}">{{index $elem 10}}</td>
</tr>
</tr>
{{end}}
{{end}}
</tbody>
</tbody>
...
...
toolbox/statistics.go
View file @
58ffc6f5
...
@@ -99,9 +99,13 @@ func (m *URLMap) GetMap() map[string]interface{} {
...
@@ -99,9 +99,13 @@ func (m *URLMap) GetMap() map[string]interface{} {
fmt
.
Sprintf
(
"% -50s"
,
k
),
fmt
.
Sprintf
(
"% -50s"
,
k
),
fmt
.
Sprintf
(
"% -10s"
,
kk
),
fmt
.
Sprintf
(
"% -10s"
,
kk
),
fmt
.
Sprintf
(
"% -16d"
,
vv
.
RequestNum
),
fmt
.
Sprintf
(
"% -16d"
,
vv
.
RequestNum
),
fmt
.
Sprintf
(
"%d"
,
vv
.
TotalTime
),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
TotalTime
)),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
TotalTime
)),
fmt
.
Sprintf
(
"%d"
,
vv
.
MaxTime
),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
MaxTime
)),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
MaxTime
)),
fmt
.
Sprintf
(
"%d"
,
vv
.
MinTime
),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
MinTime
)),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
vv
.
MinTime
)),
fmt
.
Sprintf
(
"%d"
,
time
.
Duration
(
int64
(
vv
.
TotalTime
)
/
vv
.
RequestNum
)),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
time
.
Duration
(
int64
(
vv
.
TotalTime
)
/
vv
.
RequestNum
))),
fmt
.
Sprintf
(
"% -16s"
,
toS
(
time
.
Duration
(
int64
(
vv
.
TotalTime
)
/
vv
.
RequestNum
))),
}
}
resultLists
=
append
(
resultLists
,
result
)
resultLists
=
append
(
resultLists
,
result
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment