View | Details | Raw Unified | Return to bug 130748
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	Unix-Uptime
8
PORTNAME=	Unix-Uptime
9
PORTVERSION=	0.1
9
PORTVERSION=	0.1
10
PORTREVISION=	1
10
CATEGORIES=	devel perl5
11
CATEGORIES=	devel perl5
11
MASTER_SITES=	CPAN
12
MASTER_SITES=	CPAN
12
PKGNAMEPREFIX=	p5-
13
PKGNAMEPREFIX=	p5-
(-)files/patch-lib__Unix__Uptime.pm (+12 lines)
Added Link Here
1
--- lib/Unix/Uptime.pm.orig	2009-01-19 13:22:27.000000000 -0200
2
+++ lib/Unix/Uptime.pm	2009-01-19 13:23:38.000000000 -0200
3
@@ -62,7 +62,8 @@
4
     my $class = shift;
5
     
6
     my $boottime = `sysctl kern.boottime`;
7
-    my $boot_seconds = $boottime =~ /\s+sec\s+=\s+(\d+),/;
8
+    $boottime =~ /\s+sec\s+=\s+(\d+),/;
9
+    my $boot_seconds = $1;
10
     my $time = time();
11
     my $uptime = $time - $boot_seconds;
12
     return $uptime;

Return to bug 130748