SRL Archive - SRL Stats

How long does it take for SRL stat commit?


Smarter Child

2011-07-01 18:49:27

I've implemented SRL stats into one of my scripts and I'm not seeing any commits on the page. I might be doing something wrong, however I have
  SRLRandomsReport;
Stats_Commit;
before each proggy, and it's debugged a couple already and the script has ran for about..15 minutes.

This is my barbarian fisher btw, and I've never used stats before :p

Awkwardsaw

2011-07-01 18:51:06

did you set it up correctly?

SetupSRLStats(scriptid, StatsUserId, StatsUserPass);

Smarter Child

2011-07-01 18:53:39

From: Awkwardsaw
did you set it up correctly?

SetupSRLStats(scriptid, StatsUserId, StatsUserPass);


  SetupSRLStats(143, SRLStats_User, SRLStats_Password);

SRLStats_User, SRLStats_Password are filled out as const earlier in script.

Awkwardsaw

2011-07-01 19:13:14

hm, it usually takes like 2-3min for my miner to update. last i checked, anyways

Smarter Child

2011-07-01 21:11:09

Fixed, I think I was using wrong variables.

Wizzup?

2011-07-03 04:51:48

From: Smarter Child
Fixed, I think I was using wrong variables.


You should still see the commits pop up if they're not invalid. (If you use variables not assigned to your script, the commit is invalid)

smurg

2011-07-06 17:41:51

I think if you try to commit at shorter periods than every 5min they get thrown out?

Yago

2011-07-06 17:51:48

From: smurg
I think if you try to commit at shorter periods than every 5min they get thrown out?


The commits aren't valid but the variable counts should continue to increase unless you reset them somehow…

Dgby714

2011-07-06 19:28:12

From: smurg
I think if you try to commit at shorter periods than every 5min they get thrown out?


The server will reject them, tho the stats file was made to not reset its variables when this happens. (At least I hope it was)

Awkwardsaw

2011-07-06 20:23:14

From: Dgby714
The server will reject them, tho the stats file was made to not reset its variables when this happens. (At least I hope it was)


I'm not sure about the latter, but i had to add a timer in my script so the server would accept the commit

smurg

2011-07-08 11:15:08

From: Awkwardsaw
I'm not sure about the latter, but i had to add a timer in my script so the server would accept the commit


Ya in my progress report procedure, I check that the runtime since last commit > 5min just to be on the safe side.

Yago

2011-07-08 11:30:58

From: smurg
Ya in my progress report procedure, I check that the runtime since last commit > 5min just to be on the safe side.


I just commit it… no need for a timer because if you look at the code for stat_commit it already has one…

Awkwardsaw

2011-07-08 11:32:48

From: Yago
I just commit it… no need for a timer because if you look at the code for stat_commit it already has one…


It is, but for some reason it doesnt work unless i put it into my script

Yago

2011-07-08 11:54:09

From: Awkwardsaw
It is, but for some reason it doesnt work unless i put it into my script


It might be something your doing? Cause it works for me…

Awkwardsaw

2011-07-08 11:56:56

From: Yago
It might be something your doing? Cause it works for me…


How often are you commiting? If it wasnt for the timer, my mta script would commit around every 30sec-3min

Yago

2011-07-08 12:01:33

From: Awkwardsaw
How often are you commiting? If it wasnt for the timer, my mta script would commit around every 30sec-3min


I'm committing every load so 1-2 mins…

Awkwardsaw

2011-07-08 12:57:51

From: Yago
I'm committing every load so 1-2 mins…


:p none the less, it works now that i added a separate timer.