diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-02 13:41:50 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-02 13:41:50 -0800 |
commit | 31aaf7555f51dd80cf1e97fd3c20a1c245cbf61b (patch) | |
tree | 594ca1cebbe5b8b58b4c50cb3c88487574dba712 /modules/gallery/helpers/gallery_block.php | |
parent | be5f38adea89bdb95be359aea3d97615b6b530a3 (diff) | |
parent | 3c3671cff25f28e21a702b1f665a6baa282d045f (diff) |
Merge commit 'upstream/master'
Diffstat (limited to 'modules/gallery/helpers/gallery_block.php')
-rw-r--r-- | modules/gallery/helpers/gallery_block.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php index 9d4e81b6..be0f11b8 100644 --- a/modules/gallery/helpers/gallery_block.php +++ b/modules/gallery/helpers/gallery_block.php @@ -72,7 +72,7 @@ class gallery_block_Core { $block->content = new View("admin_block_platform.html"); if (is_readable("/proc/loadavg")) { $block->content->load_average = - join(" ", array_slice(explode(" ", array_shift(file("/proc/loadavg"))), 0, 3)); + join(" ", array_slice(explode(" ", current(file("/proc/loadavg"))), 0, 3)); } else { $block->content->load_average = t("Unavailable"); } |