From c6f0760e6ec8e04b8b65bdea4e32ac1a184df2be Mon Sep 17 00:00:00 2001
From: Michael Gernoth <michael@gernoth.net>
Date: Sat, 19 Dec 2009 23:30:02 +0100
Subject: [PATCH] fix argument for print

---
 upsgraph.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upsgraph.pl b/upsgraph.pl
index 020569f..5c94daf 100755
--- a/upsgraph.pl
+++ b/upsgraph.pl
@@ -31,7 +31,7 @@ if ($> == 0) {
 		exit(1);
 	}
 
-	print "Running as root, switching to ".$ARGV[3]."\n";
+	print "Running as root, switching to ".$ARGV[1]."\n";
 	$< = $> = $ARGV[1];
 }
 
-- 
2.39.5