Comments (3)
Thanks @ravsii 🤝
Sounds good to me.
from tcping.
Hey @ravsii,
Not all the decisions we made are fresh in my memory but iircc the use of time.Duration
would cause some tricky issues. For instance, we allow the TCP connection a second to establish and we account for that in the timing in a hardcoded way to avoid weird/inaccurate values in reports.
I really need to refresh my memory on this. Let's keep this issue open till I get some time to do a proper dive.
In the meantime you can experiment with it and possibly see if the reports match the "real world" values.
from tcping.
Thanks, @pouriyajamshidi, understood. I guess those tricky cases come from the same root, which is representing some amount of time as time.Duration.
I would probably try to refactor
Lines 49 to 53 in 8c3d3b7
to time.Duration
and submit a draft-PR, if the initial results between current version and a new one would match. Even if not, we would at least know why it should be the way as it is now.
from tcping.
Related Issues (20)
- README Translation - Chinese
- add TTL in output please HOT 3
- Please add "count" and "interval" option HOT 3
- Add tcping to winget
- output interface HOT 13
- v2.0.0 is not listed on Go module proxy due to missing /v2 suffix in the "module" path HOT 8
- fix database user input flag HOT 8
- Database closure before the appropriate time. HOT 2
- Include db.go in the Makefile HOT 10
- refactor the processUserInput function HOT 8
- reduce RTT floating point precision when storing them into the database HOT 3
- Add Prometheus exporter HOT 12
- Assess replacing current sqlite package HOT 6
- re-add the static Linux binary
- wrong downtime calculation when timeout is set to under a second
- Significant size increase HOT 4
- break build section of Makefile into smaller chunks
- One failed probe prints `No response received for 0 seconds` HOT 4
- Add BSD support
- fix CI warnings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcping.