Skip to content

Commit

Permalink
Merge branch 'wip-MDL-26625' of git://github.com/sammarshallou/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 7, 2011
2 parents 7a2f4c1 + f07704d commit 29c8520
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/moodlelib.php
Expand Up @@ -9300,6 +9300,11 @@ function get_performance_info() {
$info['txt'] .= "serverload: {$info['serverload']} ";
}

// Display size of session
$info['sessionsize'] = display_size(strlen(session_encode()));
$info['html'] .= '<span class="sessionsize">Session: ' . $info['sessionsize'] . '</span> ';
$info['txt'] .= "Session: {$info['sessionsize']} ";

/* if (isset($rcache->hits) && isset($rcache->misses)) {
$info['rcachehits'] = $rcache->hits;
$info['rcachemisses'] = $rcache->misses;
Expand Down

0 comments on commit 29c8520

Please sign in to comment.