From b65266e47de5bcbbe69646930e054f6af9fa5391 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 18 Oct 2014 23:39:10 +1100 Subject: [PATCH] php - only show '/' for header user stat if 1hr is present --- pool/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool/page.php b/pool/page.php index 0b3c633f..71d20b85 100644 --- a/pool/page.php +++ b/pool/page.php @@ -259,7 +259,7 @@ function pgtop($info, $dotop, $user, $douser) $u1hr = ''; else { - $u1hr = dsprate($u1hr); + $u1hr = '/'.dsprate($u1hr); if (substr($u1hr, -3) == substr($uhr, -3)) $uhr = substr($uhr, 0, -3); @@ -325,7 +325,7 @@ function pgtop($info, $dotop, $user, $douser) $top .= " ".htmlspecialchars($who)."$extra  Hash Rate: -$uhr/$u1hr"; +$uhr$u1hr"; $top .= makeForm('')."   ";