- stats: use --workdir
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user