mirror of
https://github.com/knadh/listmonk.git
synced 2024-09-20 07:16:33 +08:00
0f6a0376da
The `rate` field `/api/campaigns/running/stats` returned was computed based on the total time spent from the start of the campaign to the current time. This meant that for large campaigns, if there were pauses or slowdowns in between, the rate would be skewed heavily making it useless to figure out the current send rate. This commit introduces a realtime running rate counter in the campaign manager that returns accurate (running) send rates for the last minute. The `rate` field in the API now shows the live running rate and a new `net_rate` field shows the rate from the beginning of the campaign.
43 lines
1.6 KiB
Modula-2
43 lines
1.6 KiB
Modula-2
module github.com/knadh/listmonk
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
github.com/Masterminds/sprig/v3 v3.2.2
|
|
github.com/disintegration/imaging v1.6.2
|
|
github.com/emersion/go-message v0.15.0
|
|
github.com/fsnotify/fsnotify v1.5.1 // indirect
|
|
github.com/gofrs/uuid v4.0.0+incompatible
|
|
github.com/google/uuid v1.3.0 // indirect
|
|
github.com/huandu/xstrings v1.3.2 // indirect
|
|
github.com/imdario/mergo v0.3.12 // indirect
|
|
github.com/jmoiron/sqlx v1.3.4
|
|
github.com/knadh/go-pop3 v0.3.0
|
|
github.com/knadh/goyesql/v2 v2.1.2
|
|
github.com/knadh/koanf v1.2.3
|
|
github.com/knadh/smtppool v0.4.0
|
|
github.com/knadh/stuffbin v1.1.0
|
|
github.com/labstack/echo/v4 v4.6.1
|
|
github.com/labstack/gommon v0.3.1 // indirect
|
|
github.com/lib/pq v1.10.3
|
|
github.com/mailru/easyjson v0.7.7
|
|
github.com/mattn/go-colorable v0.1.12 // indirect
|
|
github.com/mitchellh/mapstructure v1.4.2 // indirect
|
|
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
|
github.com/paulbellamy/ratecounter v0.2.0 // indirect
|
|
github.com/pelletier/go-toml v1.9.4 // indirect
|
|
github.com/rhnvrm/simples3 v0.8.1
|
|
github.com/spf13/cast v1.4.1 // indirect
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/yuin/goldmark v1.4.1
|
|
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e // indirect
|
|
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d // indirect
|
|
golang.org/x/mod v0.5.1
|
|
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
|
|
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
|
|
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
|
|
gopkg.in/volatiletech/null.v6 v6.0.0-20170828023728-0bef4e07ae1b
|
|
)
|
|
|
|
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.8
|