diff options
Diffstat (limited to 'x11vnc/pm.c')
-rw-r--r-- | x11vnc/pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/pm.c b/x11vnc/pm.c index 2ddb009..75e4e1e 100644 --- a/x11vnc/pm.c +++ b/x11vnc/pm.c @@ -51,10 +51,10 @@ static void check_fbpm(void) { if (! client_count) { return; } - if (time(0) < last_fbpm + 5) { + if (time(NULL) < last_fbpm + 5) { return; } - last_fbpm = time(0); + last_fbpm = time(NULL); if (FBPMInfo(dpy, &level, &enabled)) { if (db) fprintf(stderr, "FBPMInfo level: %d enabled: %d\n", level, enabled); |