I have noticed recently that vnstat does not display the date when i select the daily traffic option. To have a see of the problem first we have to click on the blue globe (network center) in the systray. The select the monitor button. Then when we have the network monitor box open, click on the long strip labelled "show detailed network statistics". When the network statistics box opens we select the daily traffic option. In the display for daily traffic the first column labeled day shows a inverted T and no date. This is a very helpful feature and should be flawless. I use it a lot. very helpful.
Created attachment 6304 [details] Network statistics shows no date.
Earlier bug report for Vnstat is 15691.
Ashvin, the program you keep filing bugs for is called net_monitor. vnstat is a command-line program. net_monitor is the graphical program that displays statistics collected by vnstat.
Source RPM: (none) => net_monitorAssignee: bugsquad => shlomifSummary: Vnstat does not display dates. => net_monitor does not display dates
Sorry david ....i mixed them up. Do you consider this a bug?
It looks like there's some funny symbol where there's supposed to be a date; it looks like a valid bug to me.
Hi David....Indeed a bug :)
(In reply to Jude Ashvin Lobo Shenoy from comment #6) > Hi David....Indeed a bug :) I can see the date fine here. :-(.
Marking as ASSIGNED.
Status: NEW => ASSIGNED
Whiteboard: (none) => MGA5TOO
CC: (none) => thierry.vignaud, yves.brungard_mageia
I will have a look
@Jude Can you check that the result is always buggy? Also, in this case, can you attach the image generated with the command: vnstati -d -o - -i enp1s0 > vnstat.png
And please indicate what is you locale setting.
Created attachment 7327 [details] vnstat
Hi there.....Attaching the output of the above command for you. locate is India and using US English.
Hello, Thanks for reporting. The bug is thus in vnstati, which output is used in net_monitor. If there is no solution in vnstati, we should replaced it :( Today, I have no idea how to do it.
@Jude With your help in the other bug report, I activated vnstat. But I can't reproduce your bug. :/ I get the days in my locale format, as for the command vnstat. Can you give the output of: vnstat -d -i enp1s0 and then LC_ALL=C vnstati -d -o - -i enp1s0 > vnstat.png LC_ALL=C vnstat -d -i enp1s0 One of the difference can be the locale settings. We can act on that.
[wolf@wolf ~]$ vnstat -d -i enp1s0 enp1s0 / daily day rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- �7CU� 1.34 GiB | 55.89 MiB | 1.40 GiB | 135.83 kbit/s �7CU� 258.87 MiB | 42.91 MiB | 301.78 MiB | 28.61 kbit/s �7CU� 132.84 MiB | 14.97 MiB | 147.81 MiB | 14.01 kbit/s �7CU� 56.75 MiB | 5.50 MiB | 62.25 MiB | 5.90 kbit/s �7CU� 238.46 MiB | 18.09 MiB | 256.55 MiB | 24.32 kbit/s �7CU� 152.42 MiB | 13.58 MiB | 166.00 MiB | 15.74 kbit/s �7CU� 51.82 MiB | 4.21 MiB | 56.03 MiB | 5.31 kbit/s �7CU� 69.41 MiB | 4.01 MiB | 73.42 MiB | 12.81 kbit/s ------------------------+-------------+-------------+--------------- estimated 127 MiB | 7 MiB | 134 MiB | [wolf@wolf ~]$ LC_ALL=C vnstat -d -i enp1s0 enp1s0 / daily day rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- 01/04/16 1.34 GiB | 55.89 MiB | 1.40 GiB | 135.83 kbit/s 01/05/16 258.87 MiB | 42.91 MiB | 301.78 MiB | 28.61 kbit/s 01/06/16 132.84 MiB | 14.97 MiB | 147.81 MiB | 14.01 kbit/s 01/07/16 56.75 MiB | 5.50 MiB | 62.25 MiB | 5.90 kbit/s 01/08/16 238.46 MiB | 18.09 MiB | 256.55 MiB | 24.32 kbit/s 01/09/16 152.42 MiB | 13.58 MiB | 166.00 MiB | 15.74 kbit/s 01/10/16 51.82 MiB | 4.21 MiB | 56.03 MiB | 5.31 kbit/s 01/11/16 69.41 MiB | 4.01 MiB | 73.42 MiB | 12.81 kbit/s ------------------------+-------------+-------------+--------------- estimated 127 MiB | 7 MiB | 134 MiB | [wolf@wolf ~]$ Hey papoteur now it looks ok :)....i hope
Created attachment 7337 [details] Vnstat Seems ok
@Jude Can you give us the ouput of the command locale? Is it a standard or a customized setting?
[wolf@wolf ~]$ locale LANG=en_IN.UTF-8 LC_CTYPE="en_IN.UTF-8" LC_NUMERIC="en_IN.UTF-8" LC_TIME="en_IN.UTF-8" LC_COLLATE="en_IN.UTF-8" LC_MONETARY="en_IN.UTF-8" LC_MESSAGES="en_IN.UTF-8" LC_PAPER="en_IN.UTF-8" LC_NAME="en_IN.UTF-8" LC_ADDRESS="en_IN.UTF-8" LC_TELEPHONE="en_IN.UTF-8" LC_MEASUREMENT="en_IN.UTF-8" LC_IDENTIFICATION="en_IN.UTF-8" LC_ALL=
@Jude Your setting seems fine. Thus I think there is something buggy in locales. Did you see other malfunction elsewhere? You can also try with the prefix LC_TIME=C.
Well to be frank i have not found out any malfunction now apart from what was reported in the form of bur reports. Am constantly on the watch out for bugs. [wolf@wolf ~]$ LC_TIME=C locale LANG=en_IN.UTF-8 LC_CTYPE="en_IN.UTF-8" LC_NUMERIC="en_IN.UTF-8" LC_TIME=C LC_COLLATE="en_IN.UTF-8" LC_MONETARY="en_IN.UTF-8" LC_MESSAGES="en_IN.UTF-8" LC_PAPER="en_IN.UTF-8" LC_NAME="en_IN.UTF-8" LC_ADDRESS="en_IN.UTF-8" LC_TELEPHONE="en_IN.UTF-8" LC_MEASUREMENT="en_IN.UTF-8" LC_IDENTIFICATION="en_IN.UTF-8" LC_ALL= [wolf@wolf ~]$
Hello, Sorry, I wasn't enough clear. I propose that you give the result of: LC_TIME=C vnstat -d -i enp1s0 I look for the parameter that has effect on the format of the date in vnstat output. This one could be used eventually in net_monitor if there is no side effect. Or apply corrections on IN locale management.
Hi there....no probs cos i was busy too. Here's what you need from me :) and its impressive [wolf@wolf ~]$ LC_TIME=C vnstat -d -i enp1s0 enp1s0 / daily day rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- 01/04/16 1.34 GiB | 55.89 MiB | 1.40 GiB | 135.83 kbit/s 01/05/16 258.87 MiB | 42.91 MiB | 301.78 MiB | 28.61 kbit/s 01/06/16 132.84 MiB | 14.97 MiB | 147.81 MiB | 14.01 kbit/s 01/07/16 56.75 MiB | 5.50 MiB | 62.25 MiB | 5.90 kbit/s 01/08/16 238.46 MiB | 18.09 MiB | 256.55 MiB | 24.32 kbit/s 01/09/16 152.42 MiB | 13.58 MiB | 166.00 MiB | 15.74 kbit/s 01/10/16 51.82 MiB | 4.21 MiB | 56.03 MiB | 5.31 kbit/s 01/11/16 296.46 MiB | 16.78 MiB | 313.24 MiB | 29.70 kbit/s 01/12/16 112.99 MiB | 6.06 MiB | 119.05 MiB | 11.29 kbit/s 01/13/16 51.52 MiB | 3.94 MiB | 55.46 MiB | 5.91 kbit/s ------------------------+-------------+-------------+--------------- estimated 57 MiB | 3 MiB | 60 MiB
I think that the problem is not vnstat, but the locale function. It seems that glibc provides it. One test: compare date '+%x' with and without prefix LC_TIME=C I suppose you will get the same problem.
[wolf@wolf ~]$ date '+%x' Thursday 14 January 2016 [wolf@wolf ~]$ LC_TIME=C [wolf@wolf ~]$ LC_TIME=C date '+%x' 01/14/16 [wolf@wolf ~]$
There a config file for vnstat /etc/vnstat.conf Inside, I have : DayFormat "%x" MonthFormat "%b '%y" TopFormat "%x" Have you the same? If not, can you give the result of: date '+%aa' where %aa is to replace with the parameter on line "DayFormat" between quotes? You can also replace it in /etc/vnstat.conf with %D or %F, or something like %d/%m/%yy to specify the format, without local interference.
Yes /etc/vnstat.conf file exists but am a bit confused how and where to make the changes as directed by you. Results of the date command are as follows: [wolf@wolf ~]$ date '+%x' Sunday 17 January 2016 [wolf@wolf ~]$
In vnstat.conf, replace DayFormat "%x" with DayFormat "%D" or DayFormat "%F" or DayFormat "%d/%m/%yy" until the result is OK
I did as told but the display on vnstat is the same as before :(
I guess this is resolved now as i see dates.
Created attachment 7983 [details] Net Monitor shows dates now.
Created attachment 7984 [details] Net Monitor shows dates now.
Thus closing
Status: ASSIGNED => RESOLVEDResolution: (none) => FIXED