mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 19:25:27 +03:00
Merge branch 'develop' of https://github.com/nicolargo/glances into develop
This commit is contained in:
commit
4ff281cde6
@ -120,4 +120,4 @@ class Plugin(GlancesPlugin):
|
||||
|
||||
Example: '255.255.255.0' will return 24
|
||||
"""
|
||||
return sum(map(lambda x: int(x) << 8, ip.split('.'))) // 8128
|
||||
return sum([int(x) << 8 for x in ip.split('.')]) // 8128
|
||||
|
Loading…
Reference in New Issue
Block a user