- stats: use --workdir

This commit is contained in:
Simon Zolin
2019-09-06 15:42:21 +03:00
parent d0dcaeaa04
commit 97684368b9
4 changed files with 10 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ type unitIDCallback func() int
// filename: DB file name
// limit: time limit (in days)
// unitID: user function to get the current unit ID. If nil, the current time hour is used.
func New(filename string, limit int, unitID unitIDCallback) Stats {
func New(filename string, limit int, unitID unitIDCallback) (Stats, error) {
return createObject(filename, limit, unitID)
}