1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud.git synced 2025-03-09 23:18:50 +00:00
This commit is contained in:
Topilski 2024-10-15 17:17:24 +03:00
parent eb997c5a40
commit 0c7b48d0b2
3 changed files with 10 additions and 4 deletions

View file

@ -14,6 +14,8 @@
#pragma once
#include <stdint.h>
#include <common/error.h>
namespace fastocloud {

View file

@ -16,6 +16,8 @@
#include <string>
#include <common/system_info/system_info.h>
#define ONLINE_USERS_FIELD "online_users"
#define OS_FIELD "os"
@ -152,8 +154,8 @@ FullServiceInfo::FullServiceInfo()
project_(PROJECT_NAME_LOWERCASE),
proj_ver_(PROJECT_VERSION_HUMAN),
os_(fastotv::commands_info::OperationSystemInfo::MakeOSSnapshot()),
vsystem_(),
vrole_() {}
vsystem_(common::system_info::VirtualizationSystem()),
vrole_(common::system_info::VirtualizationRole()) {}
FullServiceInfo::FullServiceInfo(const host_t& http_host,
const host_t& vods_host,
@ -182,8 +184,8 @@ FullServiceInfo::FullServiceInfo(const host_t& http_host,
project_(PROJECT_NAME_LOWERCASE),
proj_ver_(PROJECT_VERSION_HUMAN),
os_(fastotv::commands_info::OperationSystemInfo::MakeOSSnapshot()),
vsystem_(),
vrole_() {}
vsystem_(common::system_info::VirtualizationSystem()),
vrole_(common::system_info::VirtualizationRole()) {}
FullServiceInfo::host_t FullServiceInfo::GetHttpHost() const {
return http_host_;

View file

@ -14,6 +14,8 @@
#pragma once
#include <stdint.h>
#include <string>
namespace fastocloud {