sonichy / dde-dock-cmud

DDE Dock net speed plugin
155 stars 28 forks source link

小小的bug #6

Open YHYJ opened 6 years ago

YHYJ commented 6 years ago

1.不小心点了插件,右下角会出现一个绿框里面写着“8秒”,有时候左上角还会出现托盘程序 2.内存使用率不准,网速一直是0 谢谢大佬

sonichy commented 6 years ago

你的电脑启动居然8秒,神机啊! 不要点击右键,会崩溃,15.5 dock右键新API没看懂。 内存我觉得很卡了,不想改。 网速发 /proc/net/dev 文件内容看看。 这Bug不算小。

YHYJ commented 6 years ago

那个绿框框是开机时间啊,有没办法取消显示啊,或者改改颜色也行(比如透明底黑字) 内存显示不准修改的话还会卡么? 试了一下,是网线连接不显示网速,wifi是正常的,以下是内容:

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
enp4s0f1: 2630258343 2017989    0 20424    0     0          0     12518 80018247  784003    0    0    0     0       0          0
    lo: 3046142604 13060272    0    0    0     0          0         0 3046142604 13060272    0    0    0     0       0          0
  ppp0: 481948097  491502    0    0    0     0          0         0 45839051  427712    0    0    0     0       0          0
wlp3s0: 8825162  114807    0    1    0     0          0         0 73491358  134259    0    0    0     0       0          0
sonichy commented 6 years ago

程序是这么写的:读第三行,如果第三行含“lo”,则再读一行,后面的读不到了,行数是变动的,写死也不行。

rainyl commented 6 years ago

你好,我的问题和楼主差不多。 Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed vmnet1: 0 0 0 0 0 0 0 0 0 320 0 0 0 0 0 0 vmnet8: 0 0 0 0 0 0 0 0 0 314 0 0 0 0 0 0 eno1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lo: 235170610 42100 0 0 0 0 0 0 235170610 42100 0 0 0 0 0 0 wlo1: 374218533 279229 0 0 0 0 0 0 7586579 70596 0 0 0 0 0 0

看了一下各位的问题,主要是网速显示,建议楼主可以逐行检查,去掉lo和vmnet之类的,并对eno和wlo动态比较或者全部显示出来,再次感谢楼主的贡献啦

sonichy commented 6 years ago

新版本应该没有这问题了

rainyl commented 6 years ago

我是同步了你最新的源码,,,然而还是这样

rainyl commented 6 years ago

qsf q ce80if i go g6m

sonichy commented 6 years ago

同步可靠么,删除,克隆。 项目打开终端,./install.sh, 看看安装目录文件日期,确定安装成功。

rainyl commented 6 years ago

qq 20180521185853