mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-29 05:12:41 +00:00
Only pause during startup, not after reload.
This commit is contained in:
parent
60a6194b84
commit
61ad0c2159
@ -5615,7 +5615,7 @@ void initialisation(int argc, char **argv) {
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int c = getopt_long(argc, argv, getopt_string, longopts, NULL);
|
int c = getopt_long(argc, argv, getopt_string, longopts, NULL);
|
||||||
int startup_pause;
|
static int startup_pause = 0;
|
||||||
|
|
||||||
if (c == -1) {
|
if (c == -1) {
|
||||||
break;
|
break;
|
||||||
@ -5678,8 +5678,10 @@ void initialisation(int argc, char **argv) {
|
|||||||
break;
|
break;
|
||||||
#endif /* X11 */
|
#endif /* X11 */
|
||||||
case 'p':
|
case 'p':
|
||||||
|
if (startup_pause == 0) {
|
||||||
startup_pause = atoi(optarg);
|
startup_pause = atoi(optarg);
|
||||||
sleep(startup_pause);
|
sleep(startup_pause);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '?':
|
case '?':
|
||||||
|
Loading…
Reference in New Issue
Block a user