mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
added reading: perl_version
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6590 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
02453a0009
commit
7cc09cb76e
@ -33,6 +33,7 @@ use warnings;
|
|||||||
my $VERSION = "1.7.1";
|
my $VERSION = "1.7.1";
|
||||||
|
|
||||||
use constant {
|
use constant {
|
||||||
|
PERL_VERSION => "perl_version",
|
||||||
DATE => "date",
|
DATE => "date",
|
||||||
UPTIME => "uptime",
|
UPTIME => "uptime",
|
||||||
UPTIME_TEXT => "uptime_text",
|
UPTIME_TEXT => "uptime_text",
|
||||||
@ -160,6 +161,7 @@ SYSMON_updateCurrentReadingsMap($) {
|
|||||||
# Map aktueller Namen erstellen
|
# Map aktueller Namen erstellen
|
||||||
|
|
||||||
# Feste Werte
|
# Feste Werte
|
||||||
|
$rMap->{+PERL_VERSION} = "Perl Version";
|
||||||
$rMap->{+DATE} = "Date";
|
$rMap->{+DATE} = "Date";
|
||||||
$rMap->{+CPU_BOGOMIPS} = "BogoMIPS";
|
$rMap->{+CPU_BOGOMIPS} = "BogoMIPS";
|
||||||
if(SYSMON_isCPUFreqRPiBBB($hash)) {
|
if(SYSMON_isCPUFreqRPiBBB($hash)) {
|
||||||
@ -709,6 +711,9 @@ SYSMON_obtainParameters($$)
|
|||||||
|
|
||||||
# Einmaliges
|
# Einmaliges
|
||||||
if(!$u_first_mark) {
|
if(!$u_first_mark) {
|
||||||
|
# Perl version
|
||||||
|
$map->{+PERL_VERSION} = "$]";
|
||||||
|
|
||||||
if(SYSMON_isProcFS($hash)) {
|
if(SYSMON_isProcFS($hash)) {
|
||||||
$map = SYSMON_getCPUBogoMIPS($hash, $map);
|
$map = SYSMON_getCPUBogoMIPS($hash, $map);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user