From 1fc0f67cc4d99060f27749700b60f489627f88fe Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Thu, 9 Feb 2023 16:14:39 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D0=BE=D1=82=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20ntp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 8e1ec81..459a472 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -292,8 +292,8 @@ void MainWindow::stop_ntp(){ windowsNnpClose->hide(); string cmd = ""; string response = ""; - string array_servis[8] = {"systemd-timesyncd", "chronyd", "ntp.service", "ntpdate.service", - "ntpd", "ptp4l", "openntpd.service", "phc2sys"}; + string array_servis[8] = {"systemd-timesyncd", "chronyd.service", "ntp.service", "ntpdate.service", + "ntpd.service", "ptp4l.service", "openntpd.service", "phc2sys.service"}; for (string &name_serive: array_servis){ cmd = "systemctl status " + name_serive + " | grep \"Active: active\""; response = this->call(cmd.c_str());