Merge branch 'develop' of https://github.com/nicolargo/glances into develop

This commit is contained in:
Nicolargo 2015-06-02 14:28:12 +02:00
commit 4ff281cde6

View File

@ -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