about summary refs log tree commit diff
path: root/snooze.c
Commit message (Collapse)AuthorAgeFilesLines
* sig_atomic_t should be used with volatileLeah Neukirchen2022-01-271-3/+3
|
* Change value because st.st_mtime might not be set, see aboveHendrik Jäger2021-01-071-1/+1
|
* Change timefile calculations to respect slackHendrik Jäger2021-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | % touch -t $(date -d '7 days ago' +%Y%m%d0000) somefile % ls -l somefile -rw-r--r-- 1 henk henk 0 Dez 16 00:00 somefile Before this change: % /usr/bin/snooze -nv -s 30d -H 5 -t somefile -T 30m 2020-12-23T05:00:00+0100 Wed 0d 4h 32m 24s 2020-12-24T05:00:00+0100 Thu 1d 4h 32m 24s 2020-12-25T05:00:00+0100 Fri 2d 4h 32m 24s 2020-12-26T05:00:00+0100 Sat 3d 4h 32m 24s 2020-12-27T05:00:00+0100 Sun 4d 4h 32m 24s After this change: % ./snooze -nv -s 30d -H 5 -t somefile -T 30m 2020-12-16T05:00:00+0100 Wed -6d-19h-27m-43s 2020-12-17T05:00:00+0100 Thu -5d-19h-27m-43s 2020-12-18T05:00:00+0100 Fri -4d-19h-27m-43s 2020-12-19T05:00:00+0100 Sat -3d-19h-27m-43s 2020-12-20T05:00:00+0100 Sun -2d-19h-27m-43s
* fix verbose output when no command is passedLeah Neukirchen2020-12-111-4/+4
|
* Add option for jitter, fix wording of randdelayAndrew Benson2020-10-041-13/+21
|
* force stdout line-buffered, as output comes very slowlyLeah Neukirchen2018-05-051-0/+2
| | | | Fixes #3.
* unset tm_isdst before doing date operations v0.3Leah Neukirchen2018-05-031-0/+3
| | | | Else mktime(3) can change tm_hour due to DST change.
* more off-by-ones :(Leah Neukirchen2018-05-031-2/+2
|
* styleLeah Neukirchen2017-08-311-2/+2
|
* knf, fix whitespaceLeah Neukirchen2017-08-291-15/+18
|
* fix dayofyear and weekofyear properly v0.2Leah Neukirchen2017-08-291-3/+3
|
* fix weekofyear parsingLeah Neukirchen2017-08-291-1/+1
| | | | -W0 is still allowed, but never matches...
* parse: always treat plain / as *, even if 0 is not a legal valueLeah Neukirchen2017-08-291-1/+2
|
* find_next: take leap year into account (e.g. when using dayofyear)Leah Neukirchen2017-08-291-1/+1
|
* leahizeLeah Neukirchen2017-08-291-6/+1
|
* use getopt with + hack to not reorder argv in glibcLeah Neukirchen2017-08-291-1/+1
|
* fix -n with rare eventsChristian Neukirchen2016-01-021-12/+15
|
* off-by-one in weekofyearChristian Neukirchen2016-01-021-1/+1
|
* Reschedule when time moved backwardsChristian Neukirchen2015-11-061-0/+7
|
* Off-by-one, else snooze -s 1d -t triggers when the file has been touched on ↵Christian Neukirchen2015-11-041-1/+1
| | | | 00:00:00...
* Print duration and day of week with -nChristian Neukirchen2015-11-041-2/+12
|
* duration parsingChristian Neukirchen2015-11-041-3/+31
|
* Take slack into account when using -t without -TChristian Neukirchen2015-11-041-3/+12
|
* Log starting time with -vChristian Neukirchen2015-11-041-0/+6
|
* initial commit of snoozeChristian Neukirchen2015-11-041-0/+333