diff --git a/res/include/md/acknowledgements.md b/res/include/md/acknowledgements.md index 5ce66b4..be35221 100644 --- a/res/include/md/acknowledgements.md +++ b/res/include/md/acknowledgements.md @@ -4,7 +4,6 @@ * [Go](https://golang.org/) * [ScyllaDB](https://www.scylladb.com/) - * [CockroachDB](https://www.cockroachlabs.com/) * [Nginx](https://www.nginx.com/) * [Ubuntu Server edition](https://ubuntu.com/) * [Debian](https://www.debian.org/) @@ -13,8 +12,6 @@ * [scylladb/gocql](https://github.com/scylladb/gocql) * [scylladb/gocqlx](https://github.com/scylladb/gocqlx) - * [lib/pq](github.com/lib/pq) - * [jmoiron/sqlx](https://github.com/jmoiron/sqlx) * [BurntSushi/toml](https://github.com/BurntSushi/toml) * [julienschmidt/httprouter](https://github.com/julienschmidt/httprouter) * [gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) diff --git a/res/include/script/admin.js b/res/include/script/admin.js index bc96afa..ba32b5b 100644 --- a/res/include/script/admin.js +++ b/res/include/script/admin.js @@ -48,7 +48,7 @@ function loadGraph(minutes, interval, live) { }) } -loadGraph(10080, 60, false); +loadGraph(10080, 10, false); function loadGraphDate(start, end, interval) { fetch( diff --git a/webcontroller/file_viewer.go b/webcontroller/file_viewer.go index a9deed8..13a99a1 100644 --- a/webcontroller/file_viewer.go +++ b/webcontroller/file_viewer.go @@ -44,12 +44,12 @@ func adType() int { // Intn returns a number up to n, but never n itself. So to get a random 0 // or 1 we need to give it n=2. We can use this function to make other // splits like 1/3 1/4, etc - switch i := rand.Intn(10); i { - case 0, 1: + switch i := rand.Intn(5); i { + case 0: return amarulaSolutions - case 2, 3, 4: + case 1: return adMaven - case 5, 6, 7, 8, 9: + case 2, 3, 4: return propellerAds default: panic(fmt.Errorf(