fixed display of help command for maxusage

This commit is contained in:
gezimbll
2025-12-15 10:19:15 +01:00
committed by Dan Christian Bogos
parent e859be8806
commit 40ff69ba40
4 changed files with 25 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ import (
)
// Returns MaxUsage (for calls in seconds), -1 for no limit
func (apierSv1 *APIerSv1) GetMaxUsage(ctx *context.Context, usageRecord *engine.UsageRecordWithAPIOpts, maxUsage *int64) error {
func (apierSv1 *APIerSv1) GetMaxUsage(ctx *context.Context, usageRecord *engine.UsageRecordWithAPIOpts, maxUsage *time.Duration) error {
if apierSv1.Responder == nil {
return utils.NewErrNotConnected(utils.RALService)
}
@@ -70,6 +70,6 @@ func (apierSv1 *APIerSv1) GetMaxUsage(ctx *context.Context, usageRecord *engine.
*maxUsage = -1
return nil
}
*maxUsage = maxDur.Nanoseconds()
*maxUsage = maxDur
return nil
}