Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/darwin/dar_uptime | ||
|---|---|---|
| 1 |
#!/usr/bin/perl
|
|
| 1 |
#!/usr/bin/perl |
|
| 2 | 2 |
# -*- perl -*- |
| 3 | 3 |
|
| 4 | 4 |
=head1 NAME |
| ... | ... | |
| 69 | 69 |
} |
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 |
@uptime = `/usr/bin/uptime`;
|
|
| 72 |
@uptime = `/usr/bin/uptime`; |
|
| 73 | 73 |
foreach(@uptime) {
|
| 74 | 74 |
$_ =~ m/^.+up (.+?), \d+ us.+$/; |
| 75 |
$timestr = $1;
|
|
| 75 |
$timestr = $1; |
|
| 76 | 76 |
if ( $timestr =~ m/^(\d+) day.+?$/ ) {
|
| 77 | 77 |
$days = $1; |
| 78 | 78 |
} else { $days = 0; }
|
Formats disponibles : Unified diff