Giter Club home page Giter Club logo

pitop's Issues

runtime error - panic: runtime error: slice bounds out of range [:4] with length 3

Hi ,
I get the following error when running pitop. Please assist...

_panic: runtime error: slice bounds out of range [:4] with length 3

goroutine 24 [running]:
github.com/PierreKieffer/pitop/pkg/disk.ExtractDiskUsage(0x0)
/home/rpi/go/src/github.com/PierreKieffer/pitop/pkg/disk/disk.go:37 +0x41c
github.com/PierreKieffer/pitop/pkg/worker.Worker.func5(0x400011e360, 0x4000106420)
/home/rpi/go/src/github.com/PierreKieffer/pitop/pkg/worker/worker.go:55 +0x48
created by github.com/PierreKieffer/pitop/pkg/worker.Worker
/home/rpi/go/src/github.com/PierreKieffer/pitop/pkg/worker/worker.go:53 +0x124
_

My df -h output

Filesystem Size Used Avail Use% Mounted on
dev 1.7G 0 1.7G 0% /dev
none 117G 40G 72G 36% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 107M 1.8G 6% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/loop1 49M 49M 0 100% /snap/core18/2252
/dev/loop2 231M 231M 0 100% /snap/nextcloud/28662
/dev/loop3 147M 147M 0 100% /snap/gnome-3-28-1804/160
/dev/loop4 89M 89M 0 100% /snap/core/11996
/dev/loop5 231M 231M 0 100% /snap/nextcloud/28715
/dev/loop6 66M 66M 0 100% /snap/gtk-common-themes/1519
/dev/loop7 128K 128K 0 100% /snap/bare/5
/dev/mmcblk0p1 127M 83M 44M 66% /boot
/dev/sda1 1.9T 1.7T 166G 92% /media/exfat
tmpfs 372M 0 372M 0% /run/user/1000

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.