Commit 2468362c authored by Anael Beutot's avatar Anael Beutot
Browse files

Clean.

parent ea45151e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ import re
import os as os_
import platform as platform_
from multiprocessing import cpu_count
from socket import gethostname, gethostbyaddr
from socket import getfqdn

import psutil

@@ -15,9 +15,7 @@ from ccnode.tags import Tag, DynamicTags

def h():
    """Hostname tag."""
    hn = gethostname()

    return gethostbyaddr(hn)[0] or hn
    return getfqdn()
h.ttl = 3600 * 24  # one day