diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-01-16 14:28:25 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-01-16 14:28:25 -0500 |
| commit | 23d3e4c5b313f1a6cb14dcee505a12020a8bf418 (patch) | |
| tree | 347878598e087189e745fc8ceca7fd2aa39654cf | |
| parent | 88ecc3dbed53fd1a044914dbf2c2eb1a65bca5f3 (diff) | |
| download | stasis-timeout-hours-bug.tar.gz | |
Fixes number of seconds in an hour. Oops.timeout-hours-bug
| -rw-r--r-- | src/lib/core/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index a8b1c73..2cfebdf 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -1092,7 +1092,7 @@ int str_to_timeout(char *s) { } else if (*scale == 'm') { value *= 60; // minutes } else if (*scale == 'h') { - value *= 3200; // hours + value *= 3600; // hours } else { return STR_TO_TIMEOUT_INVALID_TIME_SCALE; // invalid time scale } |
