Author Topic: Uptime Error  (Read 1647 times)

0 Members and 1 Guest are viewing this topic.

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Uptime Error
« on: 25 November, 2004, 12:45:17 »
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?

Code: [Select]
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

PtokaX forum

Uptime Error
« on: 25 November, 2004, 12:45:17 »

Offline [_XStaTiC_]

  • Fulll Member
  • ****
  • Posts: 51
  • Karma: +0/-0
(No subject)
« Reply #1 on: 25 November, 2004, 14:31:28 »
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

Offline nErBoS

  • Emperor
  • **
  • Posts: 1 149
  • Karma: +3/-1
(No subject)
« Reply #2 on: 25 November, 2004, 14:44:40 »
Hi,

Little bug on the beta version.

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

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
(No subject)
« Reply #3 on: 25 November, 2004, 14:51:44 »
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

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
(No subject)
« Reply #4 on: 25 November, 2004, 20:21:44 »
Everything could have been anything else and it would have just as much meaning.

PtokaX forum

(No subject)
« Reply #4 on: 25 November, 2004, 20:21:44 »