Author: varkoly Date: Fri Apr 9 18:07:40 2010 New Revision: 61641 URL: http://svn.opensuse.org/viewcvs/yast?rev=61641&view=rev Log: bad regexp Modified: trunk/ntp-client/src/NtpClient.ycp Modified: trunk/ntp-client/src/NtpClient.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/src/NtpClient.ycp?rev=61641&r1=61640&r2=61641&view=diff ============================================================================== --- trunk/ntp-client/src/NtpClient.ycp (original) +++ trunk/ntp-client/src/NtpClient.ycp Fri Apr 9 18:07:40 2010 @@ -524,8 +524,9 @@ synchronize_time = tmp == "1"; tmp = (string) crontab[0,"events",0,"minute"]:"*/5"; y2milestone("MINUTE %1", tmp); - tmp = regexpsub(tmp,"\\*/",""); - sync_interval = tointeger(tmp); + list pos = regexppos(tmp, "[0-9]+"); + string tmp2 = substring(tmp,pos[0]:0,pos[1]:0); + sync_interval = tointeger(tmp2); y2milestone("SYNC_INTERVAL %1", sync_interval); string run_chroot_s = (string) SCR::Read (.sysconfig.ntp.NTPD_RUN_CHROOTED); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org