Giter Site home page Giter Site logo

Comments (11)

schorschii avatar schorschii commented on August 22, 2024

Please concretize the "connectivity issue". What exactly does the desktop notification show? (Please enable the desktop notification for debugging, if you don't have it already.)

from cinnamon-spices-desklets.

RSirois avatar RSirois commented on August 22, 2024

from cinnamon-spices-desklets.

schorschii avatar schorschii commented on August 22, 2024

So the exact output of this ping command on the desktop notification would be interesting... As soon as this output reports a packet loss greater than 0%, the desklet says "CRIT". So I think you actually have short network dropouts since I'm not able to reproduce this behavior. It's not that unusual when using WiFi.

Have you looked what statistics your separate ping command in the terminal reports after exiting it with Ctrl+C? Surely it reports a small packet loss >0% too.

from cinnamon-spices-desklets.

RSirois avatar RSirois commented on August 22, 2024

from cinnamon-spices-desklets.

schorschii avatar schorschii commented on August 22, 2024

then it is useless

Wow, what kind words. So how would you design a ping check to be "useful"??

from cinnamon-spices-desklets.

RSirois avatar RSirois commented on August 22, 2024

from cinnamon-spices-desklets.

schorschii avatar schorschii commented on August 22, 2024

I don't know @RSirois . As you see in the notification output, it internally uses the normal ping command line. Since you are the only one reporting this issue and there is no idea how to improve it, I think this issue should be closed.

from cinnamon-spices-desklets.

RSirois avatar RSirois commented on August 22, 2024

from cinnamon-spices-desklets.

zhurin avatar zhurin commented on August 22, 2024

Since you are the only one reporting this issue and there is no idea how to improve it, I think this issue should be closed.

Hi @schorschii he's not alone. After encountering the same false positives running multiple versions of Linux Mint and double-checking via CLI ping, the multiple hosts of ping.pe, and external server monitoring that the server(s) are reachable, I came here and found this issue.

The similarity in my case is that my laptop is also connected via Wi-Fi. After reading the comments thus far, I took a closer look at recent false positive notifications and they all report a ping time exceeding 1000 ms. What timeout, if any, does the desklet use and can it be adjusted for testing purposes? I'd like to try a silly long timeout and see if it makes any difference.

from cinnamon-spices-desklets.

schorschii avatar schorschii commented on August 22, 2024

I took a closer look at recent false positive notifications and they all report a ping time exceeding 1000 ms.

@zhurin OK, that's an indication. You can adjust the timeout in

['/bin/ping', this.host, '-c1', '-w2'], /*argv*/
for testing purposes. It's currently set to 2 seconds which is already quite long for a ping.

from cinnamon-spices-desklets.

zhurin avatar zhurin commented on August 22, 2024

Thanks for the quick reply. I agree that 2 seconds should be plenty, but at least it's something to take a look at. Since what I saw for each failed ping was a time of 1000 ± 20 ms, the current timeout shouldn't be the issue, but I'll try it anyway and see what happens.

Since this issue is sporadic, if the timeout change works, I'll probably keep it for a while to ensure that the resulting lack of false positives isn't just random. Stay tuned...

from cinnamon-spices-desklets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.