Mailinglist Archive: yast-commit (590 mails)

< Previous Next >
[yast-commit] r61641 - /trunk/ntp-client/src/NtpClient.ycp
  • From: varkoly@xxxxxxxxxxxxxxxx
  • Date: Fri, 09 Apr 2010 16:07:40 -0000
  • Message-id: <E1O0Gk8-0006eK-Dr@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages