Index: /trunk/wifidog-auth/wifidog/node_list.php
===================================================================
--- /trunk/wifidog-auth/wifidog/node_list.php	(revision 1257)
+++ /trunk/wifidog-auth/wifidog/node_list.php	(revision 1258)
@@ -107,8 +107,8 @@
 
 if ($nodes_results == null)
-    throw new Exception(_("No nodes could not be found in the database"));
+throw new Exception(_("No nodes could not be found in the database"));
 
 $deploymentStatuses = array (
-    "DEPLOYED" => _("Deployed"
+"DEPLOYED" => _("Deployed"
 ), "IN_PLANNING" => _("In planning"), "IN_TESTING" => _("In testing"), "NON_WIFIDOG_NODE" => _("Non-Wifidog node"), "PERMANENTLY_CLOSED" => _("Permanently closed"), "TEMPORARILY_CLOSED" => _("Temporarily closed"));
 
@@ -118,5 +118,13 @@
     $node_row['duration'] = $db->GetDurationArrayFromIntervalStr($node_row['since_last_heartbeat']);
     if($node_row['last_heartbeat_wifidog_uptime']) {
-    $node_row['wifidog_uptime'] = $db->GetDurationArrayFromIntervalStr($node_row['last_heartbeat_wifidog_uptime'].' seconds');
+        $previousRemainder = $node_row['last_heartbeat_wifidog_uptime'];
+        $remainder = $previousRemainder % (3600*24);
+        $node_row['wifidog_uptime']['days'] = ($previousRemainder - $remainder)  / (3600*24);
+        $previousRemainder = $remainder;
+        $remainder = $previousRemainder % (3600);
+        $node_row['wifidog_uptime']['hours'] = ($previousRemainder - $remainder)  / (3600);
+        $previousRemainder = $remainder;
+        $remainder = $previousRemainder % (60);
+        $node_row['wifidog_uptime']['minutes'] = ($previousRemainder - $remainder)  / (60);
     }
     $node_row['num_online_users'] = $node->getNumOnlineUsers();
