summaryrefslogtreecommitdiffstats
path: root/bin/jrancid.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2006-08-12 02:59:43 +0000
committerTar Committer <tar@ocjtech.us>2006-08-12 02:59:43 +0000
commita0be206eb419f63eeb436631cc91b3456dff006f (patch)
treec6881dc33ba7c94bb44193930402067bbe4350f5 /bin/jrancid.in
parent1cc9f22072de1d314a67387aac57740fb25c5258 (diff)
downloadrancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.gz
rancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.xz
rancid-a0be206eb419f63eeb436631cc91b3456dff006f.zip
Imported from rancid-2.3.2a5.tar.gz.rancid-2.3.2a5
Diffstat (limited to 'bin/jrancid.in')
-rw-r--r--bin/jrancid.in16
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/jrancid.in b/bin/jrancid.in
index ab35fad..6fd53fc 100644
--- a/bin/jrancid.in
+++ b/bin/jrancid.in
@@ -1,8 +1,8 @@
#! @PERLV_PATH@
##
-## $Id: jrancid.in,v 1.70 2005/09/28 22:07:57 heas Exp $
+## $Id: jrancid.in,v 1.72 2006/07/28 16:57:57 heas Exp $
##
-## Copyright (C) 1997-2004 by Terrapin Communications, Inc.
+## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
## All rights reserved.
##
## This software may be freely copied, modified and redistributed
@@ -164,7 +164,17 @@ sub ShowChassisClocks {
/syntax error/ && return;
# filter decimal places of m160 measured clock MHz
- /Measured frequency/ && s/\..*MHz/ MHz/;
+ if (/Measured frequency/) {
+ s/\..*MHz/ MHz/;
+ } elsif (/^.+\.[0-9]+ MHz$/) {
+ # filter for the m160 (newer format)
+ s/\.[0-9]+ MHz/ MHz/;
+ } elsif (/^(.+)(\.[0-9]+) MHz/) {
+ # filter for T series
+ my($leadlen) = length($1);
+ $x = sprintf(" MHz%".length($2)."s", " ");
+ substr($_, $leadlen, length($2)+4, $x);
+ }
ProcessHistory("","","","# $_");
}
return;