Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enoch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
enoch
Commits
cf9eeed9
Commit
cf9eeed9
authored
Dec 13, 2019
by
jingbo.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报表URL的时间
parent
278e6a3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
regular_report.go
pkg/report-form/regular_report.go
+16
-1
No files found.
pkg/report-form/regular_report.go
View file @
cf9eeed9
...
@@ -38,7 +38,7 @@ func RegularReport(dir string) {
...
@@ -38,7 +38,7 @@ func RegularReport(dir string) {
}
}
func
run
(
now
time
.
Time
,
dir
string
)
{
func
run
(
now
time
.
Time
,
dir
string
)
{
fileNamePrefix
:=
now
.
Format
(
"2006-01-02"
)
fileNamePrefix
:=
now
.
Add
(
time
.
Hour
*
-
24
)
.
Format
(
"2006-01-02"
)
dir
=
dir
+
"/"
+
fileNamePrefix
dir
=
dir
+
"/"
+
fileNamePrefix
dirDay
:=
dir
+
"/"
+
"day"
dirDay
:=
dir
+
"/"
+
"day"
dirWeek
:=
dir
+
"/"
+
"week"
dirWeek
:=
dir
+
"/"
+
"week"
...
@@ -95,4 +95,19 @@ func reportForm(t time.Time, dir string, n int) {
...
@@ -95,4 +95,19 @@ func reportForm(t time.Time, dir string, n int) {
}
}
}
}
glog
.
Info
(
"报表结束"
)
glog
.
Info
(
"报表结束"
)
//原始数据
/*
buf := new(bytes.Buffer)
enc := gob.NewEncoder(buf)
if err := enc.Encode(sm); err != nil {
glog.Error("报表:原始数据编码失败:", err)
return
}
data := buf.Bytes()
if err := ioutil.WriteFile(dir + "/" + "origin", data, 0644); err != nil {
glog.Error("报表:原始数据写入文件失败:", err)
return
}
*/
}
}
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