mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-10-18 01:30:22 +01:00
use GetGracefulShutdownRemainingTime instead direct access to g_GracefulShutdownEndtime
This commit is contained in:
parent
40c96dcf69
commit
c16c6976fa
3 changed files with 20 additions and 12 deletions
|
@ -307,8 +307,9 @@ namespace http {
|
|||
s << "<br>\r\n";
|
||||
}
|
||||
#elif defined(WIN32_APP)
|
||||
if (i2p::win32::g_GracefulShutdownEndtime != 0) {
|
||||
uint16_t remains = (i2p::win32::g_GracefulShutdownEndtime - GetTickCount()) / 1000;
|
||||
auto remains = i2p::win32::GetGracefulShutdownRemainingTime ();
|
||||
if (remains > 0)
|
||||
{
|
||||
s << "<b>" << tr("Stopping in") << ":</b> ";
|
||||
ShowUptime(s, remains);
|
||||
s << "<br>\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue