Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Only tell us if the CPU is above 80% usage, If it is at 100% say Something else
- if (CurrentCpuPercentage > 95)
- {
- if (CurrentCpuPercentage == 100)
- {
- String CpuLoadVocalMessage = String.Format("WARNING, Holy Crap your CPU is about to catch Fire");
- synth.Speak(CpuLoadVocalMessage);
- }
- else
- {
- String CpuLoadVocalMessage = String.Format("CPU Load is {0} percent", CurrentCpuPercentage);
- synth.Speak(CpuLoadVocalMessage);
- }
- }
- //Only tell us if the Availble Memory is below 1024 megabytes, if it is greater than 7168, say something else
- if (CurrentAvailableMemory < 512)
- {
- if (CurrentAvailableMemory > 7168)
- {
- String MemAvailableVocalMessage = String.Format("You need to open more Chrome Web Browsers", CurrentAvailableMemory);
- synth.Speak(MemAvailableVocalMessage);
- }
- else
- {
- String MemAvailableVocalMessage = String.Format("Available Memory is {0} Megabytes", CurrentAvailableMemory);
- synth.Speak(MemAvailableVocalMessage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement