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/sensors/ip_thermo_125
1 1
#!/usr/bin/perl
2 2
#
3 3
# Copyright (C) 2008 Yuriy Sabov
4
# Version 0.1 
4
# Version 0.1
5 5
#
6 6
# Plugin to fetch temperature from "IP Thermo 125" ethernet thermometer
7 7
# available at http://www.procontrol.hu/GyartasFejlesztes/Termekeink/IPThermoSimple/IPThermo125_eng.htm
......
18 18
my ($hostname, $port, $line, $telnet);
19 19

  
20 20
# "C" = Celsius, "F" = Fahrenheit
21
my $unit  = $ENV{unit}    || "C";     
21
my $unit  = $ENV{unit}    || "C";
22 22

  
23 23
$hostname = "10.10.10.10";
24 24
$port = 23;
......
38 38
  print "graph_args --base 1000 -l 0\n";
39 39
  print "graph_category sensors\n";
40 40
  print "graph_info This graph shows temperature using IP Thermo 125 server.\n";
41
	
41

  
42 42
  if ($unit =~ /F/)
43 43
  {
44 44
    print "graph_vlabel temp in °F\n";
......
48 48
    print "graph_vlabel temp in °C\n";
49 49
  }
50 50
    print "temperature.label temperature\n";
51
		         
52
  exit 0
51

  
52
  exit 0;
53 53
}
54 54

  
55 55
$telnet = new Net::Telnet (Telnetmode => 0);

Formats disponibles : Unified diff