https://bugs.kde.org/show_bug.cgi?id=418442

--- Comment #9 from Bruno Cornec <br...@victoria.frmug.org> ---
It's so regular that I've written this small script to restart it. If it can be
useful meanwhile (needs top):

#!/usr/bin/perl -w

use strict;

open(PIPE,"top -b -d 60 |") || die "Unable to execute top";
while (<PIPE>) {
        $_ =~ s/^ *//;
        my @fields = split(/ +/,$_);
        if ((defined $fields[13]) && ($fields[13] =~ /^\/bin\/plasmashell/)) {
                # Does it use 100% ?
                $fields[8] =~ s/,/./;
                #print "CPU% : $fields[8]\n";
                if ($fields[8] >= 100) {
                        print "Restarting plasmashell - ";
                        system("date");
                        system("pkill plasmashell");
                        system("/bin/plasmashell &");
                }
        }
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to