From 7c2d470551db4a574a05641ec2747ea67a42093a Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 11 May 2026 10:11:58 +0200 Subject: [PATCH] Update script LUA + conf x aggiornamento statistiche da RIOC --- MP.RIOC/MP.RIOC.csproj | 2 +- MP.RIOC/RedisScript/RedisUpdateScript_v5.lua | 6 ++-- MP.RIOC/RedisScript/RedisUpdateScript_v6.lua | 4 ++- MP.RIOC/Resources/ChangeLog.html | 2 +- MP.RIOC/Resources/VersNum.txt | 2 +- MP.RIOC/Resources/manifest.xml | 2 +- MP.RIOC/Services/MetricsCalcService.cs | 32 ++++++++++++++++++++ 7 files changed, 43 insertions(+), 7 deletions(-) diff --git a/MP.RIOC/MP.RIOC.csproj b/MP.RIOC/MP.RIOC.csproj index e8d5f3d0..934e2d91 100644 --- a/MP.RIOC/MP.RIOC.csproj +++ b/MP.RIOC/MP.RIOC.csproj @@ -5,7 +5,7 @@ enable enable MP.RIOC - 8.16.2605.1109 + 8.16.2605.1110 diff --git a/MP.RIOC/RedisScript/RedisUpdateScript_v5.lua b/MP.RIOC/RedisScript/RedisUpdateScript_v5.lua index 1b4a2477..7e12447d 100644 --- a/MP.RIOC/RedisScript/RedisUpdateScript_v5.lua +++ b/MP.RIOC/RedisScript/RedisUpdateScript_v5.lua @@ -4,11 +4,13 @@ local countInc = tonumber(ARGV[1]) or 0 local totalMsInc = tonumber(ARGV[2]) or 0 local newMax = tonumber(ARGV[3]) local newMin = tonumber(ARGV[4]) -local sentinel = tonumber(ARGV[5]) +local noReply = tonumber(ARGV[5]) +local sentinel = tonumber(ARGV[6]) --- Incrementi base +-- Incrementi redis.call('HINCRBY', key, 'count', countInc) redis.call('HINCRBYFLOAT', key, 'totalMs', totalMsInc) +redis.call('HINCRBY', key, 'noReply', noReply) -- MAX local currentMaxStr = redis.call('HGET', key, 'maxMs') diff --git a/MP.RIOC/RedisScript/RedisUpdateScript_v6.lua b/MP.RIOC/RedisScript/RedisUpdateScript_v6.lua index 230ed7f9..0e0cc274 100644 --- a/MP.RIOC/RedisScript/RedisUpdateScript_v6.lua +++ b/MP.RIOC/RedisScript/RedisUpdateScript_v6.lua @@ -4,11 +4,13 @@ local countInc = tonumber(ARGV[1]) or 0 local totalMsInc = tonumber(ARGV[2]) or 0 local newMax = tonumber(ARGV[3]) local newMin = tonumber(ARGV[4]) -local sentinel = tonumber(ARGV[5]) +local noReply = tonumber(ARGV[5]) +local sentinel = tonumber(ARGV[6]) -- Incrementi redis.call('HINCRBY', key, 'count', countInc) redis.call('HINCRBYFLOAT', key, 'totalMs', totalMsInc) +redis.call('HINCRBY', key, 'noReply', noReply) -- MAX local currentMaxStr = redis.call('HGET', key, 'maxMs') diff --git a/MP.RIOC/Resources/ChangeLog.html b/MP.RIOC/Resources/ChangeLog.html index 4380d8ab..1be4f60c 100644 --- a/MP.RIOC/Resources/ChangeLog.html +++ b/MP.RIOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-RIOC -

Versione: 8.16.2605.1109

+

Versione: 8.16.2605.1110


Note di rilascio: