Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37566353
en ru br
ALT Linux repos
S:1.13.0-alt1

Group :: Databases
RPM: innotop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: innotop-1.11.1-alt-fix_host_regex.patch
Download


Fix Host regex to show full IPs in Host column in InnoDB Txns view
See https://github.com/innotop/innotop/pull/145
--- innotop
+++ innotop
@@ -1570,7 +1570,7 @@ if ( defined($opts{p}) && length($opts{p}) == 0 ) {
 # Convenience so I can copy/paste these in several places...
 # ###########################################################################
 my %exprs = (
-   Host              => q{my $host = host || hostname || ''; ($host) = $host =~ m/^((?:[\d.]+(?=:))|(?:[a-z0-9-]+))/i; return $host || ''},
+   Host              => q{my $host = host || hostname || ''; ($host) = $host =~ m/^((?:[\d.]+(?=:|$))|(?:[a-z0-9-]+))/i; return $host || ''},
    Port              => q{my ($p) = host =~ m/:(.*)$/; return $p || 0},
    OldVersions       => q{dulint_to_int(IB_tx_trx_id_counter) - dulint_to_int(IB_tx_purge_done_for)},
    MaxTxnTime        => q/max(map{ $_->{active_secs} } @{ IB_tx_transactions }) || 0/,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin