Converting statistical responsetime from seconds to h:m:s

Things you'd like to see in phpList

Converting statistical responsetime from seconds to h:m:s

Postby gcd » 9:04pm, Sat 01 Aug, 2009

We find the click stats useful, but the responsetime displayed by /admin/mviews.php is in seconds, and therefore difficult for a human to process. We've convert it to hours:minutes:seconds by changing line 136 (in v2.10.10) to use gmdate():

From
Code: Select all
$ls->addColumn($element,$GLOBALS['I18N']->get('responsetime'),$row['responsetime'].' '.$GLOBALS['I18N']->get('sec'));

to
Code: Select all
$ls->addColumn($element,$GLOBALS['I18N']->get('responsetime'),gmdate("H:i:s", $row['responsetime']));


Might want to consider that for future versions.

Thanks for the great tool! :D

P.S. I think this probably should have been posted in Mantis, but it doesn't seem to be working properly. The 'Choose Project' drop-down is not populated so it won't allow an issue to be posted.
gcd
phpLister
 
Posts: 5
Joined: 5:08pm, Thu 14 May, 2009

Re: Converting statistical responsetime from seconds to h:m:s

Postby H2B2 » 1:22pm, Sun 04 Jul, 2010

H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006


Return to Feature Requests, Wish-list

Who is online

Users browsing this forum: No registered users and 1 guest