projects
/
snmp-json.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc8da71
)
note about oid_lex_sort
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 1 Dec 2010 17:42:39 +0000
(18:42 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 1 Dec 2010 17:42:39 +0000
(18:42 +0100)
printer-callbacks.pl
patch
|
blob
|
history
diff --git
a/printer-callbacks.pl
b/printer-callbacks.pl
index
f173530
..
30b0a72
100755
(executable)
--- a/
printer-callbacks.pl
+++ b/
printer-callbacks.pl
@@
-47,6
+47,7
@@
sub columns_cb {
warn "# $oid $name var_bind_list ", dump( $session->var_bind_list );
my $results = $session->var_bind_list;
+ # oid_lex_sort would be wonderfull to use here, but it doesn't work
foreach my $r_oid ( sort {
my ($af,$bf) = ($a,$b);
$af =~ s{\.(\d+)$}{sprintf("%03d",$1)}eg;