Skip to content

Commit 76b2959

Browse files
committed
update mac functions in DataBeans.
1 parent b231dbe commit 76b2959

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client/flow/ClientFlow.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public void start(){
4848
List<IntDataTuple> dt=new ArrayList(new Filter(sd).filterdata());
4949
db=DataBeans.getAddDataBean(dt,System.getenv("username"));
5050
}catch(Exception ex){
51-
System.err.println("error in getting software details");
51+
System.err.println("error in getting software details :- "+ex);
52+
ex.printStackTrace();
5253
return;
5354
}
5455

src/com/dataBean/DataBeans.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public static IntDataBean getAddDataBean(List<IntDataTuple> sd,String name){
8989
NetworkInterface network = NetworkInterface.getByInetAddress(ip);
9090
byte[] mac = network.getHardwareAddress();
9191
String s="";
92-
for(byte b:mac){
93-
int i=b;
92+
for(byte i:mac){
9493
if(i<=9)
9594
s+=i;
9695
else if(i==10)

0 commit comments

Comments
 (0)