projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a6194
)
Only pause during startup, not after reload.
author
Brenden Matthews
<brenden@diddyinc.com>
Tue, 26 Jan 2010 20:37:16 +0000
(12:37 -0800)
committer
Brenden Matthews
<brenden@diddyinc.com>
Tue, 26 Jan 2010 20:39:15 +0000
(12:39 -0800)
src/conky.c
patch
|
blob
|
history
diff --git
a/src/conky.c
b/src/conky.c
index
7c47b33
..
eef6791
100644
(file)
--- a/
src/conky.c
+++ b/
src/conky.c
@@
-5615,7
+5615,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;
@@
-5678,8
+5678,10
@@
void initialisation(int argc, char **argv) {
break;
#endif /* X11 */
case 'p':
- startup_pause = atoi(optarg);
- sleep(startup_pause);
+ if (startup_pause == 0) {
+ startup_pause = atoi(optarg);
+ sleep(startup_pause);
+ }
break;
case '?':