Исправлен баг отключением ntp

pull/31/head
Igor Belitskiy 3 years ago
parent fd2a3a7019
commit 1fc0f67cc4

@ -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());

Loading…
Cancel
Save