[PATCH] kannel-monitor date calc.

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi Stipe,list,

here is a "patch" that fix the same date calc. bug ...

-- 
Best Regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________

Centrium GmbH
Ehrenstrasse 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [email protected]
web: http://www.centrium.de
msn: [email protected]
kannel-monitor-inde.php.diff (text/x-diff, 780 B)
Index: contrib/kannel-monitor/index.php
===================================================================
RCS file: /home/cvs/gateway/contrib/kannel-monitor/index.php,v
retrieving revision 1.2
diff -a -u -r1.2 index.php
--- contrib/kannel-monitor/index.php	7 Mar 2003 08:36:24 -0000	1.2
+++ contrib/kannel-monitor/index.php	8 Mar 2003 16:16:24 -0000
@@ -109,7 +109,7 @@
         /* get the status of this bearerbox */
         $s = XPathValue("gateway/status", $status[$inst]);
         if (ereg("(.*), uptime (.*)d (.*)h (.*)m (.*)s", $s, $regs)) {
-            $ts = ($regs[2]*24*60*60*60) + ($regs[3]*60*60) 
+            $ts = ($regs[2]*24*60*60) + ($regs[3]*60*60) 
                   + ($regs[4]*60) + $regs[5];
 
             echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
smime.p7s (application/pkcs7-signature, 2.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.