This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 2214d9c12845e80677d652641a405d4aa32b2674
Author: [email protected] <[email protected]>
AuthorDate: Fri Mar 13 14:31:20 2026 -0600

    fix: correct down-threshold for traffic idle detection in NetworkManager
    
    The thresh_down[0] value was 0, meaning the condition to drop from low
    traffic to idle was `bytes_per_sec < 0`. Since bytes_per_sec is an
    unsigned integer, this comparison is always false, causing the traffic
    indicator dot to remain visible even when traffic stops.
    
    Changing thresh_down[0] to 1 ensures that 0 bytes/sec correctly triggers
    the transition to idle level, allowing the theme to hide the indicator
    when traffic ceases. This applies to both RX and TX directions.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 src/modules/networkmanager/e_mod_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/networkmanager/e_mod_main.c b/src/modules/networkmanager/e_mod_main.c
index 502832064..35d1f49f3 100644
--- a/src/modules/networkmanager/e_mod_main.c
+++ b/src/modules/networkmanager/e_mod_main.c
@@ -859,7 +859,7 @@ _enm_traffic_level(unsigned long long bytes_per_sec, int current_level)
 {
    /* Thresholds: up / down (with ~30% hysteresis) */
    static const unsigned long long thresh_up[]   = { 1, 10240, 512000 };
-   static const unsigned long long thresh_down[] = { 0,  7168, 358400 };
+   static const unsigned long long thresh_down[] = { 1,  7168, 358400 };
    int level = current_level;
 
    if (level < 3 && bytes_per_sec >= thresh_up[level])

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to