Well, either it's a miscalculation of some sort, or pages on this site take 37 years to load Razz:
Quote:
Page Execution Time: 1171117245.704456 seconds.
Thanks for pointing that out. Page load times are calculated using simple subtraction of the microtime at the start of page generation to the microtime at the end of page generation. For some odd reason, the page-start variable stopped being set.

Edit: Fixed. Turns out there was a variable that hadn't been globalized.
Kerm, that has been pointed out a couple of times now, time to pay attention.
rivereye wrote:
Kerm, that has been pointed out a couple of times now, time to pay attention.
Hey, what do you think I am, senile? I'm trying to be polite to new visitors here. Chill.
yeah, we should be kind, but I was just pointing out the facts

btw, Welcome to Cemetech.
still not fixed tho Razz
It is over here...
Quote:
© Copyright 2000-2005 Cemetech & Kerm Martian :: Page Execution Time: 0.085158 seconds.
Kllrnohj wrote:
still not fixed tho Razz
How sure are you of that? Rolling Eyes It looks pretty fixed to me.
Page Execution Time: 1171138227.760893 seconds. might have something to do with it... :/

Firefox 2 if you are wondering.
I'm using FF 2.0 as well and it looks perfect. It seems that some people see the fix, and some don't.

Oh.

Kllrnohj and Dan, you're using v5, aren't you? I and Harq must both be on CLite.

Edit: should be fixed for Cemetech5 now as well.
I noticed that too, just was too lazy to point it out.

Its fixed for me... FF 1.5.0.9 (i do ahve FF2.0 downloaded, just havn't got to installing it the past few months =X)


EDIT: I am using Cemetechv5 Template
thats better Smile
Cool deal. Everyone drop it now. Smile
Yep, all fixed now Smile

Quote:
oad times are calculated using simple subtraction of the microtime at the start of page generation to the microtime at the end of page generation.

Yeah, I thought it was something like that - I do something similar:

Code:

<?php
// Timer function used in the footer
// Returns the difference between the two microtimes passed
function microtime_diff($a, $b)
{
   list($a_dec, $a_sec) = explode(' ', $a);
   list($b_dec, $b_sec) = explode(' ', $b);
   return $b_sec - $a_sec + $b_dec - $a_dec;
}

// Log the starting time (to calculate Time Taken for page to load)
$start_time = microtime();

// Other stuff here... Bla, bla, bla :P


// Work out how long page took to load
$duration = microtime_diff($start_time, microtime());
$duration = sprintf('%0.3f', $duration);
?>


The release PHP 5 and the get_as_float argument for microtime() basically means I don't need that microtime_diff function anymore (it's now just a matter of simple subtraction Smile)
Daniel15 wrote:
Yep, all fixed now Smile
Cool deal. Anything else you see that needs fixing, let me know.
Quote:
Anything else you see that needs fixing, let me know.

Just a minor thing, but this site doesn't validate as HTML 4.01: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cemetech.net%2Fforum%2F

Most of that can be fixed by:

  1. Find:
    Code:
    <img
    Replace:
    Code:
    <img alt=""
    or
    Code:
    <img alt="[Image]"
    or similar.
  2. Find:
    Code:
    <BR \>
    Replace:
    Code:
    <BR />

  3. Find:
    Code:
    <td align="left" valign="center"><span class="gensmall">
    Replace:
    Code:
    <td align="left" valign="middle"><span class="gensmall">



Very Happy

EDIT: The "Total Words" count to the left of the posts uses commas to seperate thousands, but the "Posts" count does not Razz
EDIT 2: The Total Words doesn't take into account edits to the post
I've considered all but the last one in the past, yet the site is spread across so many different templates, I think it would take more time than it's really worth. The last one's easy, though; I'll definitely get on that.
I never did notice the comma thing. I can't imagine it would be hard to format it as such, but then again, a person has more words then posts.
All it takes is number_format(). Smile
http://us2.php.net/number_format
KermMartian wrote:
Kllrnohj and Dan, you're using v5, aren't you? I and Harq must both be on CLite.


Yeah, I was v5 - too lazy to change. All better now Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement