From 177ca4f4d55368718eb295f1010ad5c81660af57 Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 30 Mar 2013 02:36:06 +0400 Subject: Fix backward compatibility for server uptime in master server web page --- util/master/list.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util') diff --git a/util/master/list.js b/util/master/list.js index 18cbc4b68..990bb6ded 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -54,9 +54,8 @@ function success(r) { h += ''; h += '' + e(s.description) + ''; h += '' + e(s.password ? 'Pwd ' : '') + (s.creative ? 'Cre ' : '') + (s.damage ? 'Dmg ' : '') + (s.pvp ? 'Pvp ' : '') + (s.dedicated ? 'Ded ' : '') + ''; - if (!s.time || s.time < 0) s.time = 0; if (!s.start || s.start < 0) s.start = 0; - h += '' + (s.uptime ? human_time(s.uptime, 1) : '') + ''; + h += '' + (s.uptime ? human_time(s.uptime, 1) : s.start ? human_time(s.start) : '') + ''; h += '' + (s.ping ? parseFloat(s.ping).toFixed(3) * 1000 : '') + ''; h += ''; } -- cgit v1.2.3