From 8dd4e92d8dcd424fd5d9ab715c84e29e269984c5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 26 Jan 2004 10:07:45 +0000 Subject: (Repaint) help perl_checker in checking time_to_rad() arguments --- perl-install/standalone/drakclock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/drakclock') diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index 4e014f329..8ed295472 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -292,7 +292,8 @@ sub time_to_rad { sub Repaint { my ($drawing_area, $o_update_time) = @_; - time_to_rad(localtime(time())) if $o_update_time; + my ($sec, $min, $hour) = localtime(time()); + time_to_rad($sec, $min, $hour) if $o_update_time; my ($width, $height) = ($drawing_area->allocation->width, $drawing_area->allocation->height); my $dRadians_hour_real = $dRadians_hour + $dRadians_min / 12; my $dRadians_min_real = POSIX::floor($dRadians_min / $PI * 30) * $PI / 30; -- cgit v1.2.1