Uptime Error
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Uptime Error

Started by Madman, 25 November, 2004, 12:45:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

Hi, Copyed This from some script...
dont Rember witch one tho...and added it to mine
but, it semms to be something wrong... beacuse
when i do it in my hub i get this
[12:40:05] <-=Destruction=-> *** -=Destruction=- Has Been Running for -25 Days, 22 Hours 16 Minutes And 16 Seconds
But Ptokax Says
(UpTime: 25 days, 15 hours, 19 minutes)

But if i do it in my testhub, witch i resently started...
i get
[12:41:16] *** MadHouse Has Been Running for 0 Days, 0 Hours 13 Minutes And 39 Seconds
and Ptokax says
(UpTime: 0 days, 0 hours, 13 minutes)

Why Does Destruction Says -25 days? Is it beacuse i didnt start the hub with the script.....
beacuse i had it running for about 20 days, then i added the script... and restarted the scripts...
Could it be because of that?

if cmd == "!uptime" then
			local sec = clock()
			local days = floor(sec/86400)
			local hrs = floor((sec-(days*86400))/3600)
			local min = floor((sec-(days*86400)-(hrs*3600))/60)
			sec = floor(sec-(days*86400)-(hrs*3600)-(min*60))
				curUser:SendData(HubBot, "*** "..HubName.." Has Been Running for "..days.." Days, "..hrs.." Hours "..min.." Minutes And "..sec.." Seconds")
		return 1
		end
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

[_XStaTiC_]

yes i have the same problem

[14:25:37] Deze hub draait PtokaX DC Hub 0.3.3.0 build 15.25 [debug]  (UpTime: 34 days, 18 hours, 19 minutes)
Hub UpTime      : -15 days, 1 hours, 17 minutes, and 40 secs

nErBoS

Hi,

Little bug on the beta version.

Best regards, nErBoS
--## nErBoS Spot ##--

Madman

Okey, Thanks nErBoS
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk