mirror of https://github.com/midoks/mdserver-web
pull/109/head
parent
8d5f097071
commit
593826ae4b
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1,36 @@ |
|||||||
|
|
||||||
|
<div class="testServer"> |
||||||
|
<div class="ts-head"> |
||||||
|
<div class="ts-h-score"> |
||||||
|
<div class="ts-h-s-img ts-h-s-imging"></div> |
||||||
|
<div class="ts-h-s-num"><span>正在跑分中<img src="/static/img/ings.gif"></span></div> |
||||||
|
<div class="ts-stamper"></div> |
||||||
|
</div> |
||||||
|
<div class="ts-btn ts-btn-start" onclick="startTest();">开始跑分</div> |
||||||
|
</div> |
||||||
|
<div class="ts-info">公式:1万次整数+2万次浮点+1亿位圆周率+1万次排序 +((磁盘读+磁盘写)*IO速度)+内存容量</div> |
||||||
|
<div class="ts-content"> |
||||||
|
<div class="ts-c-box ts-cpu"> |
||||||
|
<div class="ts-c-b-score"></div> |
||||||
|
<div class="ts-c-b-img"></div> |
||||||
|
<div class="ts-c-b-name">CPU</div> |
||||||
|
<div class="ts-c-b-info">cpu运算能力</div> |
||||||
|
</div> |
||||||
|
<div class="ts-c-box ts-disk"> |
||||||
|
<div class="ts-c-b-score"></div> |
||||||
|
<div class="ts-c-b-img"></div> |
||||||
|
<div class="ts-c-b-name">磁盘</div> |
||||||
|
<div class="ts-c-b-info">磁盘读写能力</div> |
||||||
|
</div> |
||||||
|
<div class="ts-c-box ts-mem"> |
||||||
|
<div class="ts-c-b-score"></div> |
||||||
|
<div class="ts-c-b-img"></div> |
||||||
|
<div class="ts-c-b-name">内存</div> |
||||||
|
<div class="ts-c-b-info">内存容量</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<script type="text/javascript"> |
||||||
|
resetPluginWinWidth(700); |
||||||
|
$.getScript("/plugins/file?name=readme&f=js/score.js"); |
||||||
|
</script> |
@ -0,0 +1,11 @@ |
|||||||
|
# coding: utf-8 |
||||||
|
|
||||||
|
import time |
||||||
|
import psutil |
||||||
|
import random |
||||||
|
import os |
||||||
|
import urllib |
||||||
|
import binascii |
||||||
|
import json |
||||||
|
import public |
||||||
|
import re |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"title":"插件开发说明", |
||||||
|
"tip":"soft", |
||||||
|
"name":"readme", |
||||||
|
"type":"扩展", |
||||||
|
"ps":"(mdserver-web)插件产开发说明,每个版本可能有所变化!", |
||||||
|
"versions": "0.1", |
||||||
|
"shell":"install.sh", |
||||||
|
"checks":"mdserver-web/plugins/readme/r", |
||||||
|
"author":"mdserver-web", |
||||||
|
"home":"github.com/midoks/mdserver-web", |
||||||
|
"date":"2018-11-30", |
||||||
|
"pid":"5" |
||||||
|
} |
@ -0,0 +1,27 @@ |
|||||||
|
#!/bin/bash |
||||||
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||||
|
export PATH |
||||||
|
|
||||||
|
curPath=`pwd` |
||||||
|
rootPath=$(dirname "$curPath") |
||||||
|
rootPath=$(dirname "$rootPath") |
||||||
|
serverPath=$(dirname "$rootPath") |
||||||
|
|
||||||
|
install_tmp=${rootPath}/tmp/bt_install.pl |
||||||
|
|
||||||
|
Install_readme() |
||||||
|
{ |
||||||
|
echo '安装完成' > $install_tmp |
||||||
|
} |
||||||
|
|
||||||
|
Uninstall_readme() |
||||||
|
{ |
||||||
|
echo '卸载完成' > $install_tmp |
||||||
|
} |
||||||
|
|
||||||
|
action=$1 |
||||||
|
if [ "${1}" == 'install' ];then |
||||||
|
Install_readme |
||||||
|
else |
||||||
|
Uninstall_readme |
||||||
|
fi |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue