projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ogg_afh.c: add documentation of struct ogg_datasource
[paraslash.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index 46eb8f19196acfe37f280eb6650223437acdbf1b..67bc6f2f68af48ac9b99caf1c7a40d08363777dd 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-171,13
+171,15
@@
time_t server_uptime(enum uptime set_or_get)
{
static time_t startuptime;
time_t now;
+ double diff;
if (set_or_get == UPTIME_SET) {
time(&startuptime);
return 0;
}
time(&now);
- return (time_t) difftime(now, startuptime);
+ diff = difftime(now, startuptime);
+ return (time_t) diff;
}
/**