Skip to content

Commit 272ac20

Browse files
dmedripoettering
authored andcommitted
calendar: new case 'minutely'
1 parent 2d1239e commit 272ac20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/shared/calendarspec.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,12 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
655655
if (!c)
656656
return -ENOMEM;
657657

658-
if (strcaseeq(p, "hourly")) {
658+
if (strcaseeq(p, "minutely")) {
659+
r = const_chain(0, &c->second);
660+
if (r < 0)
661+
goto fail;
662+
663+
} else if (strcaseeq(p, "hourly")) {
659664
r = const_chain(0, &c->minute);
660665
if (r < 0)
661666
goto fail;

0 commit comments

Comments
 (0)