Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/apache/apache_vhosts/apache_pipelogger
40 40

  
41 41
	# sanity check
42 42
	next unless m/^([\d\w\.\-_]+\s){5}([\d\w\.\-_]+$)/;       # escaped "." and "-"
43
	
43

  
44 44
	# sitename to munin fieldname
45 45
	my $vpm=clean_fieldname($vhost);
46 46
	$temp{$vpm}{'label'}=$vhost;
47 47
	$temp{$vpm}{'label'}=~s/www\.//;
48
	
48

  
49 49
	# count all requests
50 50
	$temp{$vpm}{'requests'}++;
51 51

  
......
60 60
         # average bytes
61 61
         $temp{$vpm}{'avg_bytes'}=$temp{$vpm}{'bytes'}/$temp{$vpm}{'requests'} || 0 if ($bytes);
62 62
	}
63
	
63

  
64 64
	# count by status / error code
65 65
	$temp{$vpm}{"status"}{$status}++ if $status;
66 66

  
......
77 77
};
78 78

  
79 79
sub periodic_write {
80
        # begin transaction                
80
        # begin transaction
81 81
        $share->lock(LOCK_EX);
82
        
82

  
83 83
        # get data (may be updated by other loggers too)
84 84
        my %old=eval{%{thaw($share->fetch)}};             # using eval to suppress thaw error on empty string at the first run
85 85

  

Formats disponibles : Unified diff