Skip to content

Commit d9b84a5

Browse files
fix compilation error on ubuntu22
1 parent 14a3282 commit d9b84a5

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

src/test/redis/redis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void TestRedis::setexGet()
164164
QCOMPARE(res, QByteArray()); // empty
165165
bool ok = redis.setEx(key, value, secs);
166166
QCOMPARE(ok, true); // set ok
167-
Tf::msleep(Tf::random(50, 1900)); // sleep
167+
Tf::msleep(Tf::random(50, 1700)); // sleep
168168
res = redis.get(key); // get value
169169
QCOMPARE(res, value);
170170
}

tools/tfmanager/processinfo_win.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,6 @@ int64_t ProcessInfo::ppid() const
5050
}
5151

5252

53-
// int64_t ProcessInfo::ppid() const
54-
// {
55-
// int64_t ppid = 0;
56-
// HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processId);
57-
// if (hProcess) {
58-
// PROCESS_BASIC_INFORMATION basicInfo;
59-
// if (NtQueryInformationProcess(hProcess, ProcessBasicInformation, &basicInfo, sizeof(basicInfo), NULL) == STATUS_SUCCESS) {
60-
// ppid = (int64_t)basicInfo.InheritedFromUniqueProcessId;
61-
// }
62-
// }
63-
// return ppid;
64-
// }
65-
66-
6753
QString ProcessInfo::processName() const
6854
{
6955
QString ret;

tools/tfmanager/systembusdaemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void SystemBusDaemon::readSocket()
9797
}
9898

9999
QByteArray buf = socket->readAll();
100-
tSystemDebug("SystemBusDaemon::read len : {}", (int64_t)buf.size());
100+
tSystemDebug("SystemBusDaemon::read len : {}", (qint64)buf.size());
101101
if (maxServers <= 1) {
102102
// do nothing
103103
return;

0 commit comments

Comments
 (0)