Giter Club home page Giter Club logo

Comments (17)

nicolargo avatar nicolargo commented on April 29, 2024

Effectivement, j'ai le même problème avec ton fichier mtab. Je vais corriger cela dans la prochain release....

Merci pour la remonté du bug !

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

De rien !

Si tu as besoin d'informations supplémentaires, n'hésite pas.

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Tu peux me renvoyer le résultat des commandes suivantes:

python

import os
os.path.abspath(os.path.join("/home", os.pardir))
os.path.abspath(os.path.join("/home/user/dir1", os.pardir))

Thx !

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

python

Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import os
os.path.abspath(os.path.join("/home", os.pardir))
'/'
os.path.abspath(os.path.join("/home/user/dir1/ftp", os.pardir))
'/home/user/dir1'

:-)

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Et en bonus le résultat de:

os.path.dirname(os.path.abspath("/home"))
os.path.dirname(os.path.abspath("/home/user/dir1/ftp"))

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

python

Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import os
os.path.dirname(os.path.abspath("/home"))
'/'
os.path.dirname(os.path.abspath("/home/user/dir1/ftp"))
'/home/user/dir1'

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Une dernière série pour la route...

os.path.ismount("/")
os.path.ismount("/tmp")
os.path.ismount("/home")
os.path.ismount("/home/user/dir1")

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

python

Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import os
os.path.ismount("/")
True
os.path.ismount("/tmp")
False
os.path.ismount("/home")
True
os.path.ismount("/home/user/dir1")
False

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Strange... Il voit bien /home comme un point de montage. Je ne comprend pas qu'il ne te l'affiche pas...

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Peux tu récupérer le script Python de test suivant: http://sam.nicolargo.com/owncloud/apps/files_sharing/get.php?token=f9ea4ef61b59f775848f6d23476cc1696bb1eb7b

Le lancer puis faire un copier/coller du résultat ?

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

./glances_test.py

[{'used_blocks': 931414L, 'mnt_point': '/', 'total_blocks': 3047472L, 'used': 3815071744L, 'avail_blocks': 1962471L, 'device_name': 'rootfs', 'avail': 8038281216L, 'total_inodes': 770048L, 'free_inodes': 653900L, 'fs_type': 'rootfs', 'avail_inodes': 653900L, 'used_inodes': 116148L, 'block_size': 4096L, 'free_blocks': 2116058L, 'io_size': 4096L, 'size': 12482445312L}]

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Cela semble venir de la librairie libstatgrab...
Je viens de forcer l'utilisation de ma routine maison dans le script suivant: http://sam.nicolargo.com/owncloud/apps/files_sharing/get.php?token=e6af3ff874a5bb332e109f6102b4e6c3c4ead7be

Tu peux tester et me faire un retour ?

Merci !

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

Ah, en effet !

./glances_test.py

[{'mnt_point': '/', 'used': 3815186432.0, 'device_name': 'rootfs', 'avail': 8667258880.0, 'fs_type': 'rootfs', 'size': 12482445312.0}, {'mnt_point': '/', 'used': 3815186432.0, 'device_name': '/dev/root', 'avail': 8667258880.0, 'fs_type': 'ext4', 'size': 12482445312.0}, {'mnt_point': '/dev', 'used': 4096.0, 'device_name': '/dev', 'avail': 1045278720.0, 'fs_type': 'devtmpfs', 'size': 1045282816.0}, {'mnt_point': '/home', 'used': 412799315968.0, 'device_name': '/dev/sda2', 'avail': 564956393472.0, 'fs_type': 'ext4', 'size': 977755709440.0}, {'mnt_point': '/home', 'used': 412799315968.0, 'device_name': '/dev/sda2', 'avail': 564956393472.0, 'fs_type': 'ext4', 'size': 977755709440.0}]

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

Bon je vais faire la modification dans la version 1.3.4. Pour ne pas attendre de ton coté, il suffit de remplacer le bloc de code suivant (ligne 172):

    try:
        self.fs = statgrab.sg_get_fs_stats()
    except:
        # Replace the bugged self.fs = statgrab.sg_get_fs_stats()
        self.fs = self.glancesgrabfs.get()

par

    try:
        # Replace the bugged self.fs = statgrab.sg_get_fs_stats()
        self.fs = self.glancesgrabfs.get()
    except:
        self.fs = {}

A plus !

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

La version 1.3.4 corrige le bug (entre autre...): https://github.com/downloads/nicolargo/glances/glances-1.3.4.tar.gz

A+

from glances.

mydoomfr avatar mydoomfr commented on April 29, 2024

Impeccable ! ;-)

from glances.

nicolargo avatar nicolargo commented on April 29, 2024

De nada :)

Bonnes fêtes de fin d'année !

from glances.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.