/** @dataProvider provideSeconds */
 public function testShouldConvertSecondsToReadableString($seconds, $precision, $expectedString)
 {
     assertThat(secondsToDays($seconds, $precision), is($expectedString));
 }
 public function convertSecondsToReadableString()
 {
     return secondsToDays($this->elapsedSeconds);
 }
             $title .= "<br>" . _("Pings disabled");
         } elseif ($tDiff < $statuses[0]) {
             $state = "alive";
             $title .= "<hr>" . _("Last seen") . ": " . secondsToDays(strtotime($ipVisual[$m]['lastSeen'])) . " " . _("day(s) ago") . "<br>(" . $ipVisual[$m]['lastSeen'] . ")";
         } elseif ($tDiff < $statuses[1]) {
             $state = "warning";
             $title .= "<hr>" . _("Last seen") . ": " . secondsToDays(strtotime($ipVisual[$m]['lastSeen'])) . " " . _("day(s) ago") . "<br>(" . $ipVisual[$m]['lastSeen'] . ")";
         } elseif ($tDiff < 2592000) {
             $state = "offline";
             $title .= "<hr>" . _("Last seen") . ": " . secondsToDays(strtotime($ipVisual[$m]['lastSeen'])) . " " . _("day(s) ago") . "<br>(" . $ipVisual[$m]['lastSeen'] . ")";
         } elseif ($ipVisual[$m]['lastSeen'] == "0000-00-00 00:00:00") {
             $state = "neutral";
             $title .= "<hr>" . _("Last seen") . ": " . _("Never");
         } else {
             $state = "disconnected";
             $title .= "<hr>" . _("Last seen") . ": " . secondsToDays(strtotime($ipVisual[$m]['lastSeen'])) . " " . _("day(s) ago") . "<br>(" . $ipVisual[$m]['lastSeen'] . ")";
         }
     }
 } else {
     # print add
     $class = 9;
     $state = "unknown";
     $id = $m;
     $action = 'all-add';
     $title = "";
 }
 # permissions
 $permission = checkSubnetPermission($subnetId);
 # print box
 if ($permission > 1) {
     print "<span class='state-{$state} ip-{$class} modIPaddr'  data-action='{$action}' rel='tooltip' title='{$title}' data-position='top' data-html='true' data-subnetId='" . $subnetId . "' data-id='{$id}'>." . substr(strrchr(transform2long($m), "."), 1) . "</span>";