diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-16 14:01:48 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-16 14:01:48 +0100 |
commit | 7d3f63a402dcdff41a8180784109c17cb2b98333 (patch) | |
tree | 6468bd69d9230e6a1e90a0a66a42835f814859a3 /vdr.c | |
parent | 00e08f582135e4ba2c264626369458e4d0f4b3b3 (diff) | |
download | vdr-7d3f63a402dcdff41a8180784109c17cb2b98333.tar.gz vdr-7d3f63a402dcdff41a8180784109c17cb2b98333.tar.bz2 |
Fixed a wrong 'delta' value in the call to the shutdown script
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.172 2004/01/04 11:12:05 kls Exp $ + * $Id: vdr.c 1.173 2004/01/16 13:59:57 kls Exp $ */ #include <getopt.h> @@ -795,6 +795,7 @@ int main(int argc, char *argv[]) if (Interface->Confirm(tr("Press any key to cancel shutdown"), UserShutdown ? 5 : SHUTDOWNWAIT, true)) { int Channel = timer ? timer->Channel()->Number() : 0; const char *File = timer ? timer->File() : ""; + Delta = Next - time(NULL); // compensates for Confirm() timeout char *cmd; asprintf(&cmd, "%s %ld %ld %d \"%s\" %d", Shutdown, Next, Delta, Channel, strescape(File, "\"$"), UserShutdown); isyslog("executing '%s'", cmd); |