Skip to content

Commit af20daa

Browse files
committed
python updates
1 parent 21b1b70 commit af20daa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

homemon-snmp/snmp-collector.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ for (var key in snmp_data_array) {
6060
function executeSNMP (x) {
6161
x.session.get (x.oids, function (error, varbinds) {
6262
if (error) {
63-
console.log (error);
64-
} else {
63+
console.log (error);
64+
} else {
6565
// console.log(x.host, varbinds[0].value, varbinds[1].value);
6666

6767
var now = new Date();
@@ -92,4 +92,5 @@ function executeSNMP (x) {
9292
x.lastDown = down;
9393
}
9494
});
95-
};
95+
}
96+

homemon-snmp/snmp.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import netsnmp
2-
import time
2+
# import time
33
import datetime
44
import os
55
import sys
@@ -53,5 +53,3 @@
5353
bytes_up_old = bytes_up_new
5454
bytes_down_old = bytes_down_new
5555
oldtime = newtime
56-
57-
print

0 commit comments

Comments
 (0)