mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
interfaces: remove unused
This commit is contained in:
parent
07e1223e34
commit
2e63bae3f3
@ -3943,30 +3943,6 @@ function interfaces_neighbors_configure($device = null, $ifconfig_details = null
|
||||
}
|
||||
}
|
||||
|
||||
function convert_seconds_to_hms($sec)
|
||||
{
|
||||
$min = $hrs = 0;
|
||||
if ($sec != 0) {
|
||||
$min = floor($sec / 60);
|
||||
$sec %= 60;
|
||||
}
|
||||
if ($min != 0) {
|
||||
$hrs = floor($min / 60);
|
||||
$min %= 60;
|
||||
}
|
||||
if ($sec < 10) {
|
||||
$sec = "0" . $sec;
|
||||
}
|
||||
if ($min < 10) {
|
||||
$min = "0" . $min;
|
||||
}
|
||||
if ($hrs < 10) {
|
||||
$hrs = "0" . $hrs;
|
||||
}
|
||||
$result = $hrs . ":" . $min . ":" . $sec;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/****f* legacy/is_ipaddr_configured
|
||||
* NAME
|
||||
* is_ipaddr_configured
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user