mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
implement addRange, add pprof to server
This commit is contained in:
parent
aca50d9de5
commit
1023b6ed11
6 changed files with 362 additions and 36 deletions
|
@ -18,11 +18,11 @@ func makeConfig() {
|
|||
if ok {
|
||||
config.DatabaseLocation = fmt.Sprintf("%s/.ffzstatsweb/database.sqlite", home)
|
||||
config.GobFilesLocation = fmt.Sprintf("%s/.ffzstatsweb/gobcache", home)
|
||||
os.MkdirAll(config.GobFilesLocation, 0644)
|
||||
os.MkdirAll(config.GobFilesLocation, 0755)
|
||||
} else {
|
||||
config.DatabaseLocation = "./database.sqlite"
|
||||
config.GobFilesLocation = "./gobcache"
|
||||
os.MkdirAll(config.GobFilesLocation, 0644)
|
||||
os.MkdirAll(config.GobFilesLocation, 0755)
|
||||
}
|
||||
file, err := os.Create(*configLocation)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue