update ad split

This commit is contained in:
2020-12-22 00:07:43 +01:00
parent 75ca29d06b
commit bad27a7f35
3 changed files with 5 additions and 8 deletions

View File

@@ -4,7 +4,6 @@
* [Go](https://golang.org/) * [Go](https://golang.org/)
* [ScyllaDB](https://www.scylladb.com/) * [ScyllaDB](https://www.scylladb.com/)
* [CockroachDB](https://www.cockroachlabs.com/)
* [Nginx](https://www.nginx.com/) * [Nginx](https://www.nginx.com/)
* [Ubuntu Server edition](https://ubuntu.com/) * [Ubuntu Server edition](https://ubuntu.com/)
* [Debian](https://www.debian.org/) * [Debian](https://www.debian.org/)
@@ -13,8 +12,6 @@
* [scylladb/gocql](https://github.com/scylladb/gocql) * [scylladb/gocql](https://github.com/scylladb/gocql)
* [scylladb/gocqlx](https://github.com/scylladb/gocqlx) * [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) * [BurntSushi/toml](https://github.com/BurntSushi/toml)
* [julienschmidt/httprouter](https://github.com/julienschmidt/httprouter) * [julienschmidt/httprouter](https://github.com/julienschmidt/httprouter)
* [gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) * [gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype)

View File

@@ -48,7 +48,7 @@ function loadGraph(minutes, interval, live) {
}) })
} }
loadGraph(10080, 60, false); loadGraph(10080, 10, false);
function loadGraphDate(start, end, interval) { function loadGraphDate(start, end, interval) {
fetch( fetch(

View File

@@ -44,12 +44,12 @@ func adType() int {
// Intn returns a number up to n, but never n itself. So to get a random 0 // 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 // or 1 we need to give it n=2. We can use this function to make other
// splits like 1/3 1/4, etc // splits like 1/3 1/4, etc
switch i := rand.Intn(10); i { switch i := rand.Intn(5); i {
case 0, 1: case 0:
return amarulaSolutions return amarulaSolutions
case 2, 3, 4: case 1:
return adMaven return adMaven
case 5, 6, 7, 8, 9: case 2, 3, 4:
return propellerAds return propellerAds
default: default:
panic(fmt.Errorf( panic(fmt.Errorf(