forked from elementary/monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request elementary#182 from stsdc/dev
Adds basic info in the System tab
- Loading branch information
Showing
20 changed files
with
384 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
com.github.stsdc.monitor (0.8.0) bionic; urgency=low | ||
|
||
* System resources tab | ||
|
||
-- Stanisław Dac <[email protected]> Sun, 19 Jul 2020 00:30:43 +0200 | ||
|
||
com.github.stsdc.monitor (0.7.3) bionic; urgency=low | ||
|
||
* Added tooltips to process state label (Ryo Nakano) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
public class Monitor.Resources : Object { | ||
public CPU cpu; | ||
public Memory memory; | ||
public Swap swap; | ||
|
||
construct { | ||
memory = new Memory (); | ||
cpu = new CPU (); | ||
swap = new Swap (); | ||
} | ||
|
||
public void update() { | ||
cpu.update(); | ||
memory.update(); | ||
} | ||
public ResourcesSerialized serialize () { | ||
return ResourcesSerialized () { | ||
cpu_percentage = cpu.percentage, | ||
cpu_frequency = cpu.frequency, | ||
memory_percentage = memory.percentage, | ||
memory_used = memory.used, | ||
memory_total = memory.total, | ||
swap_percentage = swap.percentage, | ||
swap_used = swap.used, | ||
swap_total = swap.total | ||
}; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public struct ResourcesSerialized { | ||
public int cpu_percentage; | ||
public double cpu_frequency; | ||
public int memory_percentage; | ||
public double memory_used; | ||
public double memory_total; | ||
public int swap_percentage; | ||
public double swap_used; | ||
public double swap_total; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.