Mageia Bugzilla – Attachment 7069 Details for
Bug 16845
network monitor does not display graph of traffic data (python3 regression)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
do not unset IP if we can't retrieve the MAC one
0005-do-not-unset-IP-if-we-can-t-retrieve-the-MAC-one.patch (text/plain), 771 bytes, created by
Thierry Vignaud
on 2015-09-29 10:45:25 CEST
(
hide
)
Description:
do not unset IP if we can't retrieve the MAC one
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-09-29 10:45:25 CEST
Size:
771 bytes
patch
obsolete
>From 011843be0296286693790babe037941c204e2467 Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Tue, 29 Sep 2015 04:19:31 -0400 >Subject: [PATCH 5/5] do not unset IP if we can't retrieve the MAC one > >--- > src/monitor.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/src/monitor.py b/src/monitor.py >index 04829d1..ae7f407 100644 >--- a/src/monitor.py >+++ b/src/monitor.py >@@ -197,7 +197,7 @@ class Monitor: > mac_struct=str(self.ioctl(0x8927, struct.pack('256s', bytes(ifname[:15], 'utf-8')))[18:24]) > mac=":".join(["%02x" % ord(char) for char in mac_struct]) > except: >- addr=_("No address assigned") >+ pass > # addr, mac > return addr, mac > >-- >2.5.3 >
From 011843be0296286693790babe037941c204e2467 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Tue, 29 Sep 2015 04:19:31 -0400 Subject: [PATCH 5/5] do not unset IP if we can't retrieve the MAC one --- src/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitor.py b/src/monitor.py index 04829d1..ae7f407 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -197,7 +197,7 @@ class Monitor: mac_struct=str(self.ioctl(0x8927, struct.pack('256s', bytes(ifname[:15], 'utf-8')))[18:24]) mac=":".join(["%02x" % ord(char) for char in mac_struct]) except: - addr=_("No address assigned") + pass # addr, mac return addr, mac -- 2.5.3
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16845
:
7060
|
7065
|
7066
|
7067
|
7068
| 7069 |
7070
|
7073