cloudy

Author Topic: wxstatus.php script incorrect value?  (Read 111 times)

0 Members and 1 Guest are viewing this topic.

Offline NigelS

  • Posts: 275
  • NW Leicestershire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • GablesEnd Weather
wxstatus.php script incorrect value?
« on: January 14, 2012, 07:28:54 AM »
I had to restart WD on Thursday as part of moving to a new PC. Afterwards, the wxstatus.php script showed the followng:

Station system up for 3 Days 21 Hours 14 Minutes 0 Seconds
Station system free memory 2097MB
This website uses Weather-Display (10.37R-(b05)) for weather conditions reporting.
It was last started 11:51 am 12/01/12.

The last line is correct for the restart time, but the math is a bit wrong.  Instead of saying starting from "Station System up for 0 days 0 hours 0 minutes 9 seconds" - it actually started counting from 2 Days something and this figure has been wrong ever since.  WHere is this value coming from, and how can I correct it?

Thanks
NigelS
 
GablesEnd Weather - http://www.nrms.info

Offline Budgie

  • Martin
  • Global Moderator
  • Posts: 4,651
  • WML Station: WD00934 CWOP: CW7959
  • Isle of Lewis, Scotland
  • OS/Browser:
  • Win XP
  • MS IE 6.0
    • Hebrides-Weather
Re: wxstatus.php script incorrect value?
« Reply #1 on: January 14, 2012, 07:39:50 AM »
I think it's coming from the testtags.php file, which gets it data from WD using the tags.
Your "System up time" is for the PC, not WD software up time, does that make any difference to the timing?

Offline NigelS

  • Posts: 275
  • NW Leicestershire, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • GablesEnd Weather
Re: wxstatus.php script incorrect value?
« Reply #2 on: January 14, 2012, 10:53:06 AM »
Ah, OK yes the PC was up running NexStorm for two days before I transferred WD across, so that explains it.

Thanks
Nigel
GablesEnd Weather - http://www.nrms.info