fix net_services_name retval
This commit is contained in:
1 parent
8c982e45ff
commit
0b38c6455d
2 files changed
+2
-2
No files matched your search
@@ -14,7 +14,7 @@ def format_port(sigar, proto, port, is_numeric)
|
||||
end
|
||||
if !is_numeric
|
||||
service = sigar.net_services_name(proto, port)
|
||||
if service != false
|
||||
if service != nil
|
||||
return service
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user