diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-26 10:07:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-26 10:07:45 +0000 |
commit | 8dd4e92d8dcd424fd5d9ab715c84e29e269984c5 (patch) | |
tree | 92d6aff84e1e14a080565abc49f4efbeef1920c8 | |
parent | fe1f0cf647f2e9416d3ab4b5ca4395adeb98d44c (diff) | |
download | drakx-8dd4e92d8dcd424fd5d9ab715c84e29e269984c5.tar drakx-8dd4e92d8dcd424fd5d9ab715c84e29e269984c5.tar.gz drakx-8dd4e92d8dcd424fd5d9ab715c84e29e269984c5.tar.bz2 drakx-8dd4e92d8dcd424fd5d9ab715c84e29e269984c5.tar.xz drakx-8dd4e92d8dcd424fd5d9ab715c84e29e269984c5.zip |
(Repaint) help perl_checker in checking time_to_rad() arguments
-rwxr-xr-x | perl-install/standalone/drakclock | 3 |
1 files changed, 2 insertions, 1 deletions
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; |