change paths

This commit is contained in:
ville rantanen
2014-03-24 08:52:59 +02:00
parent 05176f0986
commit 01fc9ecd2e
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
cores=$( grep -c processor /proc/cpuinfo )
# verbose mode
tgtf=/mnt/csc-cloud/vm_state/${HOSTNAME}.long
tgtf=/mnt/csc-gc5/vm_state/${HOSTNAME}.long
# debug
if [ -z "$1" ]
then touch "$tgtf"
@@ -19,7 +19,7 @@ fi
# concise mode
tgtf=/mnt/csc-cloud/vm_state/${HOSTNAME}.short
tgtf=/mnt/csc-gc5/vm_state/${HOSTNAME}.short
# debug
if [ -z "$1" ]
then touch "$tgtf"
@@ -37,7 +37,7 @@ then echo -n "|$HOSTNAME L:" > "$tgtf"
ps a --format user| grep -v -e root -e USER | sort -u | wc -l | tr -c -d [:digit:] >> "$tgtf"
TZ="Europe/Helsinki" date "+ @%H:%M" >> "$tgtf"
# save history
echo -e "$HOSTNAME\t$load\t$used\t"$( date +%s ) >> /mnt/csc-cloud/vm_state/history/${HOSTNAME}
echo -e "$HOSTNAME\t$load\t$used\t"$( date +%s ) >> /mnt/csc-gc5/vm_state/history/${HOSTNAME}
fi