AlShakib / InternetSpeedMeter

A simple and minimal internet speed meter extension for Gnome Shell
GNU General Public License v3.0
37 stars 11 forks source link

The internet speed meter gnome isnt showing anything #10

Closed TheSkynetDesigner29 closed 1 year ago

TheSkynetDesigner29 commented 1 year ago

At first i installed the gnome from the gnome extension website but after i updated the fedora 36 via terminal, it suddenly doesnt show any internet speed and no it is not just this particular gnome but also any other internet speed showing gnome.I will provide any information that u might need.I dont what to provide for this particular problem and please email me if u need any other relevent information. Thanks!

AlShakib commented 1 year ago

Did you update Internet Speed Meter to the latest version? Older version does not support Fedora 36...

TheSkynetDesigner29 commented 1 year ago

Yes, I even deleted the original file and downloaded the latest one.

Addamo99 commented 1 year ago

Same problem here. Used to work like a charm on Fedora 36 until 1-2 weeks ago.

Screenshot from 2022-10-18 22-28-26

ShrirajHegde commented 1 year ago

Same problem, same timeline after an update

ShrirajHegde commented 1 year ago

@AlShakib Probably the format in /proc/net/dev.

Here's a sample output.

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo: 11129531   15210    0    0    0     0          0         0 11129531   15210    0    0    0     0       0          0
enp3s0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  wlo1: 2873608435 1954413    0    0    0     0          0         0 78861894  758243    0    0    0     0       0          0
virbr1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
virbr0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
virbr2:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
docker0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

Here's the file from cat /proc/net/dev > temp temp.gz

AlShakib commented 1 year ago

Thanks for the output. I'll try to update the extension as soon as possible. 👍

ShrirajHegde commented 1 year ago

Exception is triggered but log file isn't saved

ShrirajHegde commented 1 year ago

@AlShakib, it's actually the problem with GJS api. The new shell version seems to have broken something.

let dataStream = Gio.DataInputStream.new(fileStream);

This line throws an exception.

ShrirajHegde commented 1 year ago

https://github.com/AlShakib/InternetSpeedMeter/pull/13 Has a potential fix. Works fine for me.

Method is taken from https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet, It should be backwards compatible.

ShrirajHegde commented 1 year ago

@TheSkynetDesigner29 @Addamo99 Try this fix

curl "https://raw.githubusercontent.com/ShrirajHegde/InternetSpeedMeter/master/src/extension.js" > ~/.local/share/gnome-shell/extensions/InternetSpeedMeter@alshakib.dev/extension.js
AlShakib commented 1 year ago

Submitted a new update to Gnome Extensions. Hopefully fixed with latest update.