mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
Only pause during startup, not after reload.
This commit is contained in:
parent
0c19282eee
commit
5ed1f82ff5
@ -4010,7 +4010,7 @@ void initialisation(int argc, char **argv) {
|
||||
|
||||
while (1) {
|
||||
int c = getopt_long(argc, argv, getopt_string, longopts, NULL);
|
||||
int startup_pause;
|
||||
static int startup_pause = 0;
|
||||
|
||||
if (c == -1) {
|
||||
break;
|
||||
@ -4070,8 +4070,10 @@ void initialisation(int argc, char **argv) {
|
||||
break;
|
||||
#endif /* BUILD_X11 */
|
||||
case 'p':
|
||||
startup_pause = atoi(optarg);
|
||||
sleep(startup_pause);
|
||||
if (startup_pause == 0) {
|
||||
startup_pause = atoi(optarg);
|
||||
sleep(startup_pause);
|
||||
}
|
||||
break;
|
||||
|
||||
case '?':
|
||||
|
Loading…
Reference in New Issue
Block a user