Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save_Data.py Modification #11

Open
Endwin-Redwood opened this issue Sep 26, 2023 · 0 comments
Open

Save_Data.py Modification #11

Endwin-Redwood opened this issue Sep 26, 2023 · 0 comments

Comments

@Endwin-Redwood
Copy link

Endwin-Redwood commented Sep 26, 2023

I set mine up without any docker dependencies.

In my use case:
Python 3.9.2
MTR 0.94
InfluxDB 1.8.10
Grafana v10.1.1

Had to modify save_data.py line 45-48 thus:

    if hub['count'] < 10:
        hop = "0" + str(hub['count']) + "-" + hub['host']
    else:
        hop = str(hub['count']) + "-" + hub['host']

Python3 was unable to do a string conversion from int with string concatenation. Explicitly changed int to str.

Hope this helps someone out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant